G
Guest
Hi,
I have a windows form, on wich i have a WebBrowser Control, and i would very
much like to print the rendered HTML document to a specified printer and not
only to the default printer. I has to happen without user interaction, so
just simply showing the print dialog will not do the trick.
I know the feature:
-> PrintOBJ.ExecWB 6,2,1
Which would print the document, without user interaction, on the default
printer.
I can set the specified printer:
PrintDialog1.PrinterSettings.PrinterName = "myPrinter"
PrintDialog1.Print()
This would print the document on the printer named "myPrinter"
But i cant find the <PrintDocument.PrintPage> event on the WebBrowser
Control, so that i could take over the printing and then set the printername..
Can i get the rendered HTML doc into a PrintDoc and then print i from there ?
Any suggestions ?
Thanks in advance!
Kresten Buch | Denmark
I have a windows form, on wich i have a WebBrowser Control, and i would very
much like to print the rendered HTML document to a specified printer and not
only to the default printer. I has to happen without user interaction, so
just simply showing the print dialog will not do the trick.
I know the feature:
-> PrintOBJ.ExecWB 6,2,1
Which would print the document, without user interaction, on the default
printer.
I can set the specified printer:
PrintDialog1.PrinterSettings.PrinterName = "myPrinter"
PrintDialog1.Print()
This would print the document on the printer named "myPrinter"
But i cant find the <PrintDocument.PrintPage> event on the WebBrowser
Control, so that i could take over the printing and then set the printername..
Can i get the rendered HTML doc into a PrintDoc and then print i from there ?
Any suggestions ?
Thanks in advance!
Kresten Buch | Denmark