Force a Page Break on a Domino Web Page

You Can View User Feedback To This Tip

I had a need to force a page break after a certain section of a page generated by Domino. I created a style sheet and used the ID attribute in conjunction with the P tag to force the page break. Domino places a <p> at the beginning of the body tag. So you can't force the page break using only the <p> tag. So by using the ID attribute it only breaks the paragraph where I tell it to! This works with straight html as well.

Thanks to Matthew Sheranko from the lnotes-l list for the basic idea. More information can be found at: http://www.htmlhelp.com/reference/css/style-html.html

Code: Place the following code in the "HTML Head" section of your domino form:
   <STYLE>
       #pbb4 { page-break-before: always }
   </STYLE>

And place a <P ID=pbb4> where-ever you need the forced page break on your generated form.

Here's an example in straight html:
<HTML>
   <HEAD><TITLE>Dynamic Styles: Page Breaking</TITLE>
   <STYLE>
       #pbk1 { page-break-before: always }
   </STYLE>
   </HEAD>
   <BODY>
       <p >
       1st page content
       </p>
       <p >
       more 1st page content
       </p>
       <p id=pbk1>
       2nd Page content
       </p>
   </BODY>
   </HTML>

USER FEEDBACK TO THIS TIP

  • This works for IE but doesn't function at all in Netscape. —Barry Parish


This was first published in January 2001

Dig deeper on Domino Resources - Part 6

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close