in reply to Win32 Printing
...that will print a html file to several printers installed on that server....
The solution will depend upon what you mean by that?
If you mean print the entire contents of a file that contains html, tags and all, as ascii--just as you would see it on the screen if you did type file.html, then the easiest way is to use open directly to the printers device id (lpt1: or com2: etc) or it's full share name (\\server\\printername). and just print to the filehandle in the normal way.
But if you want the html, minus the tags, and formatted as you would see it in a browsers, then you will need to use a browser's print facility to take care of the formatting. You can (with a lot of reading) do this using Win32::OLE or possibly using Win32::GuiTest. Either is not simple, but if you use super search you may find some guidance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32 Printing
by bkiahg (Pilgrim) on Nov 02, 2004 at 23:21 UTC | |
by BrowserUk (Patriarch) on Nov 02, 2004 at 23:45 UTC | |
by bkiahg (Pilgrim) on Nov 03, 2004 at 00:40 UTC | |
|
Re^2: Win32 Printing
by harryC (Sexton) on Feb 19, 2006 at 19:18 UTC | |
by BrowserUk (Patriarch) on Feb 20, 2006 at 00:07 UTC |