5.4 onPageBreak Handler

The onPageBreak handler is executed at the end of every page, after all elements on the page have been processed (except for headers and footers). Because the onPageBreak handler follows body-element processing, it should not modify the body contents on the current page. It can, however, modify contents in the header and footer of the current page.

The main use of onPageBreak is to calculate page-level summarization. It is also useful in cases where you wish to display page numbering in the body of the report. You can use the onPageBreak handler to increment a “page number” variable, and then reference that variable in the desired elements.

See Also

Headers and Footers, in Report Design, to implement page numbering without scripting.

<< 5.3 onLoad Handler © 1996-2013 InetSoft Technology Corporation (v11.5) The OnPageBreak Event Handler >>