M
Mohan
Hello Experts,
Would like to use IE application object to print html and pdf silently. When
a html file is printed, it is printed silently without any print dialogs.
When a pdf file is printed, a print dialog is shown. Is there any way to
avoid this.
Any help would be appreciated.
Set ie = CreateObject("internetexplorer.application")
'ie.navigate "C:\Test.pdf"
OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = 2
ie.execWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
ie.Quit
Thanks,
Mohan
Would like to use IE application object to print html and pdf silently. When
a html file is printed, it is printed silently without any print dialogs.
When a pdf file is printed, a print dialog is shown. Is there any way to
avoid this.
Any help would be appreciated.
Set ie = CreateObject("internetexplorer.application")
'ie.navigate "C:\Test.pdf"
OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = 2
ie.execWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
ie.Quit
Thanks,
Mohan