|
From: Russell L. <gs...@gh...> - 2005-02-03 10:40:15
|
Developers, The file src/win/wprinter.c contains some old code for sending printer specific output to a printer in DumpPrinter(). The 16-bit code is probably still Ok, but probably not much used these days. The 32-bit code was written by me to work on Win32s and the full Win32. Win32s had some limitations with printing - the old 16-bit APIs are not available, nor are the 32-bit APIs. The current Win32 code uses the GDI Escape to try to sneak the data through the printer driver. It should be safe to assume the Win32s isn't used any more. So we should be able to replace the old Win32 printing code with something based on the attached code. In a slightly different form, this code has been used by GSview and Ghostscript for many years. Note that although the function gp_printfile_win32 has an argument named "port", it really is the printer queue name, not the port name. Some of the existing code to select a printer queue is still needed. Let me know if you need some assistance with this. I'm not on the gnuplot developer mailing list. Russell Lang gs...@gh... Ghostgum Software Pty Ltd http://www.ghostgum.com.au/ |