General discussion

Locked

Printing HTML pages using mshtml.dll

By Robin McNamara ·
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 conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Desktop Forum
0 total posts (Page 1 of 1)  

Hardware Forums