Forcing Page Breaks in BI Publisher

Problem


You can't get a clean page break on your document. Word page breaks don't work, and the official guideline doesn't work.

http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#pgebreaks

In the template sample shown in the following figure, the field called PageBreak contains the split-by-page-break syntax:
the picture is described in the document text
Place the PageBreak field with the <?split-by-page-break:?> syntax immediately before the <?end for-each?> field. The PageBreak field sits inside the end of the SUPPLIER loop. This will ensure a page break is inserted before the occurrence of each new supplier. This method avoids the ejection of an extra page at the end of the group when using the native Microsoft Word page break after the group.

Solution

Rather than using <?split-by-page-break:?>, use 

<?for-each@section:G_1?> BREAK
Where the syntac of "BREAK" field is
<xsl:attribute name="break-before">page</xsl:attribute>

This works perfectly.

Acknowledgement

https://community.oracle.com/thread/983330

Comments

  1. Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. Danilo

    ReplyDelete
  2. been struggling a while with page break this actually works great stuff, thanks!!

    ReplyDelete
  3. excellent solution for page break to use before after end tag of group.

    ReplyDelete
  4. Wonderful. Worked very well for me.

    ReplyDelete
  5. Great solution. Thank you very much!!!!

    ReplyDelete

Post a Comment