Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q272445

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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 "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.
  1. Open a Web page in FrontPage 2000.
  2. Switch to HTML view.
  3. 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>
    					
  4. Switch to normal view.
  5. Save the page to your desktop as "PageBreakTest.htm" and then quit FrontPage.
  6. Open the "PageBreakTest.htm" page in Internet Explorer 5.5, and then print the page. It should be printed on two sheets of paper.

↑ Back to the top


References

For more information about HTML and cascading style sheets, browse to the following Web sites:

↑ Back to the top


Keywords: KB272445, kbprb

↑ Back to the top

Article Info
Article ID : 272445
Revision : 2
Created on : 6/18/2005
Published on : 6/18/2005
Exists online : False
Views : 271