Microsoft KB Archive/272445

= FP2000: Web Page Printed from Browser May Not Be Printed as Expected =

Article ID: 272445

Article Last Modified on 6/18/2005

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



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.



WORKAROUND
Microsoft 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 &quot;compatibility&quot; 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  section: Page 1  Page 2  Switch to normal view. Save the page to your desktop as &quot;PageBreakTest.htm&quot; and then quit FrontPage.</li> Open the &quot;PageBreakTest.htm&quot; page in Internet Explorer 5.5, and then print the page. It should be printed on two sheets of paper.</li></ol>

<div class="references_section">