FP2000: Web Page Printed from Browser May Not Be Printed as Expected (272445)
The information in this article applies to:
This article was previously published under Q272445 SYMPTOMS
When you browse to an HTML page and try to print it, the Web page may not be printed as you expect. It may be printed on multiple pages at apparently random intervals.
CAUSE
Currently, the World Wide Web Consortium (W3C) has not set an HTML standard for forcing page breaks when printing a Web document.
In addition, FrontPage does not have a built-in way to force a page break. The page is printed by using the default settings of your browser and printer. Page breaks may vary, based on your fonts and printer drivers.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To work around this behavior, you can use custom cascading style sheets code to enter a page break into the HTML code. NOTE: This sample makes use of custom cascading style sheets code that may not be available in all browsers. For more information, see the "compatibility" topics in FrontPage 2000 Help.
Code Sample
The following code sample has been tested and works in Microsoft Internet Explorer 5.5, but does not work in Netscape Navigator.
- Open a Web page in FrontPage 2000.
- Switch to HTML view.
- Insert the following HTML code in the <BODY></BODY> section:
<p>Page 1</p>
<br clear="all" style="page-break-before:always">
<p>Page 2</p>
- Switch to normal view.
- Save the page to your desktop as "PageBreakTest.htm" and then quit FrontPage.
- Open the "PageBreakTest.htm" page in Internet Explorer 5.5, and then print the page. It should be printed on two sheets of paper.
REFERENCES
For more information about HTML and cascading style sheets, browse to the following Web sites:
Modification Type: | Major | Last Reviewed: | 6/18/2005 |
---|
Keywords: | kbprb KB272445 |
---|
|