Insert page breaks when creating Word documents with HTML and LotusScript

Maybe you'd like a page break at a specific point to keep a particular look. You do that by setting up a class of page breaks. You can set up the class on any HTML command, but I think the best method is to set up the class within paragraph tags. That way there's some white space where the page can break. Here's a look at the format (this will sit between your HEAD tags):

<STYLE TYPE="text/css">
     P.breakhere {page-break-before: always}

This then will be the activator for the page break:

<p class="breakhere">&nbsp;</p>

You can set up as many different classes as you'd like as long as you keep following the same format as above.

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Wednesday September 5, 2007