We need to set headers, footers paper size and printer name from our Web Browser
application. Please help, it is very important to us. This is what I found:
1) HOWTO: Print Custom Headers and Footers for a WebBrowser Control
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q267240
it works for header and footer, but doesn't help to set printer and paper size
2) Printing with the Internet Explorer WebBrowser Control
http://msdn.microsoft.com/workshop/browser/wb_print.asp
it uses hooks and works for IE4 and 5.0 only
3) ScriptX control
http://www.meadroid.com/scriptx
It looks good, but we can not use it because of their strange licensing requirement.
Also, mshtmcid.h from SDK has many undocumented constants:
IDM_EXECPRINT
IDM_GETPRINTTEMPLATE
IDM_SETPRINTTEMPLATE
IDM_TEMPLATE_PAGESETUP
IDM_SHOWPRINT
IDM_SHOWPAGESETUP
IDM_FIRE_PRINTTEMPLATEUP
IDM_FIRE_PRINTTEMPLATEDOWN
IDM_SETPRINTHANDLES
IDM_PAGESETUP
Does somebody know what it is for? Is it possible to do with Print template what we need?
Thank you very much for any ideas.
Best,
Alex Fedorov