Print HTML document to specified printer

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
 
G

Guest

Kresten;

I am trying to do the same thing, did you find a solution to this issue?

Thanks;
Shepard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top