Using property PrintOnPreviousPage with unlimited pages

2017-08-18

In this article I want to consider a property PrintOnPreviousPage of the object ReportPage. How does it work? If you have a two-page report, you can set this property to true for the second page, and then, if the first page is left free space, the objects of the second page, partially or completely be transferred to the first. Thus, you can save paper when printing reports or simply to improve the look of the report, if the empty space on the page is causing your discord. All of this works fine with the usual report pages. However, if you use the property or UnlimitedHeight UnlimitedWidth, then to the pages will be connected you must to fulfill some conditions:Страницы должны иметь включенное свойство UnlimitedHeight или UnlimitedWidth;

  • If both pages have enabled UnlimitedHeight property, they should have the same width, or enabled UnlimitedWidth property;
  • For the page you want to merge with the previous the property PrintOnPreviousPage should be enabled.

If you do not observe these restrictions, the merging of pages will not happen.

The functional of merger of unlimited pages became available with version 2017.1.13.

And now a bit of practice. Create a report with two pages:

And: 

Pages have the same width 21cm. For both pages enabled UnlimitedHeight property. For the second page enabled PrintOnPreviousPage property.

Run the report:

The pages joined into the one. And now for one of the pages change the sheet width from 21 to 22:

Pages not connected.

Now, enable the UnlimitedWidth property for the both pages:

Pages are reconnected. Requirements for the third page are the same as for the second. If we disable PrintOnPreviusPage property for the second page, and enable it for the third page, then only the second and third pages will be merged:

Thus, you can now use PrintOnPreviousPage property for "unlimited" pages. This makes a report with a few pages one-page report.

.NET .NET FastReport FastReport
April 22, 2025

Working with the TfrShellTreeView Component in FastReport VCL

In this article, we will look at the TfrShellTreeView component. It is designed to display file system elements and is partially analogous to the TDirectoryListBox, TDirectoryOutline, and TShellTreeView components.
April 21, 2025

How RFID Tags Work in FastReport VCL

In this article, we'll check out how RFID tags work with the new TfrxDeviceCommand object in FastReport VCL with release 2025.2.
April 08, 2025

How to Set Up a Connection to Apache Ignite in FastReport .NET

In this article, we will explore how to configure a connection to Apache Ignite in FastReport .NET. You will learn the necessary steps to connect the plugin via code and the report designer.
Fast Reports
  • 800-985-8986 (English, US)
  • +31 97 01025-8466 (English, EU)
  • +49 30 56837-3928 (German, DE)
  • +55 19 98147-8148 (Portuguese, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.