VBA : IE printing htm without any headers,footers

M

Mohan

Hello Experts,

Would like to use IE application object to print html without any
headers or footers.

Following is the code I use.

Set ie = CreateObject("internetexplorer.application")
'ie.navigate "C:\Test.htm"

OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = 2
ie.execWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER

ie.Quit

How do I tell IE in VBA to print without any headers or footers that?

Any help or directions to proceed would be greatly appreciated.

Thanks,
Mohan
 

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