Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set printer and paper size for Web Browser control?

1 view
Skip to first unread message

Alex Fedorov

unread,
Sep 14, 2001, 7:48:23 AM9/14/01
to
Hello,

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


0 new messages