How to suppress IE print dialog box?

G

Guest

Hi guys.
I'm doing development for my windows based program.
I'll load a lot of html files and print it out.
But with the code that I have, it will show the print dialog box everytime
before printing. That means if I have 100 html files to be printed, I need to
press "OK" in print dialog box in order for the printing process to continue.
So I need help on how to suppress the print dialog box, please help. And
below are my codes.

p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = strFileToPrint
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
 

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