Forces a page break when printing a report.
NEWPAGE |
Remarks
The page break generated by NEWPAGE is treated exactly like the page breaks that are generated automatically with one exception, footers and headers will be printed in the same way as when an automatic page break occurs, but transport footers and headers are not generated and printed.
This function is not supported on client report definition (RDLC) report layouts. For more information about how to group sets of data on RDLC report layouts and reset the page number after each group, see How to: Reset Page Numbers.
Example
This example shows how to use the NEWPAGE function in the OnPreSection Trigger of the Body section of the relevant data item if you have a certain table where you want to start a new page before certain records when printing a list of the table.
Copy Code | |
---|---|
IF "Spare Parts".Pagebreak THEN CurrReport.NEWPAGE; |
The Pagebreak variable is supposed to be of type Boolean, and when it is true, a page break will be generated.
See Also
© 2010 Microsoft Corporation. All rights reserved.