Printing HTML pages using mshtml.dll - TechRepublic
General discussion
September 30, 2002 at 07:01 PM
robin mcnamara

Printing HTML pages using mshtml.dll

by robin mcnamara . Updated 23 years, 9 months ago

When using the PrintHTML function in this library from the command line, it always prompts the user with the Printer Options dialog box (rather than just printing to the default Windows printer).

For example, I would use the following command :
rundll32.exe c:\winnt\system32\mshtml.dll,PrintHTML “I:\filename.htm”

to print an html file on my I: drive.

Does anybody know the command-line equivalent of the DONTPROMPTUSER switch available from VBA ? This would allow a non-interactive (batch) print of html files to be possible.

Thanks for any help !

This discussion is locked

All Comments