Article relates to
Feb 25, 2016
Last modified by
After designing a report, in print preview of the report there are blank pages and/or spaces in the report.
The pages are not actually blank. Rather there is some content that cannot fit on the current page and is carried over to the next page. There are several cases when this happens:
To see which items are causing the problem, simply change their background to a different, more contrasting color and run the report in design print-preview, a viewer or export it to PDF. The rendered report will immediately give you a clue about the items which are at fault. Then simply try making the report items smaller until the "blank" pages disappear or decrease the report width. You can use are the report's PageSettings properties to change the physical page size.
We would advise creating the items so that they do not touch other items, section ends, etc., because the processing engine might produce unexpected results. Always leave a little space (a couple of pixels/points) around report items to prevent unexpected behavior.
Red error message boxes can be avoided by handling errors on report processing in the report's Error event.
Blank pages can appear, because a Section has its KeepTogether property set to true and the rendering engine attempts to render content on a single page (it is later that it "realizes" that this is impossible).
For example, if the first page contains the ReportHeader or other section, the rendering engine tries to render the detail on the second page, which has more available space.
Setting the KeepTogether property of the Section to false allows page breaks in the section. Reporting items and sections have KeepTogether properties, and groups have GroupKeepTogether property.
In the case of a layout with a Table/List/Crosstab item, the paging mechanism does not apply page breaks in a row's content. Improvements for such layouts are applied in R2 2016. In previous versions you can replace the Table item with TextBox items or a SubReport item loading external report to achieve a similar layout.
More details and suggestions can be found in Understanding Pagination.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.