The information in this article applies to:
SUMMARYThis article explains how to set page margins, and header and footer information for printing from Internet Explorer and the WebBrowser control programmatically. MORE INFORMATION
Users could easily change page margins, and header and footer settings using the Internet Explorer User Interface; however, there are no methods under Internet Explorer or the WebBrowser control to change these settings programmatically.
If there is no such a key, Internet Explorer createc this key by copying the values from the following:
If there is no such key, default values are provided. For the Header and Footer, the values are picked up from the following:
If there is no such key, default values are provided. The defaults are 0.75 for margins,"&w&bPage &p of &P" for header and "&u&b&d" for footer. The developer could alter the above registry entries for the printing settings accordingly. Please note that these values are system-wide and affect all instances of the WebBrowser control and Internet Explorer for the current user. REFERENCESFor additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q145679 HOWTO: Use the Registry API to Save and Retrieve Setting Q156732 HOWTO: Print from the Microsoft WebBrowser Control Q176400 HOWTO: Print the WebBrowser Control Q188271 HOWTO: Print Contents of the Web Browser Control From VBFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp Additional query words: Print WebBrowser header footer margins orientation
Keywords : kbAutomation kbIE400 kbIE401 kbPrinting kbWebBrowser kbIE401sp1 kbIE401sp2 kbGrpInet kbIE500 kbDSupport kbIEFAQ |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |