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.
- 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.