How to Force a New Page From a Script

We want to programmatically start a new page (at times) before printing a databand. i..e. sometimes the databand should appear on the current page, sometimes it should start at the top of the next page.

We tried this by hooking the data band's BeforePrint event and then (sometimes) setting the DataBand.StartNewPage property.

This is not working. When it detects the need to start a new page, the data band prints on the current page, then the next record prints on a new page.


i.e. it is like the descision to use DataBand.StartNewPage has been made BEFORE the BeforePrint was called.


How can we do this?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.