Start on an odd or even page

Ensure that part of your report starts on an odd or even page. For example, a batch of invoices are printed in duplex mode, so a new invoice must always start on an odd page.

About this task

The following PXML Boolean functions, in the X-Size or Y-Size properties, reveal whether an object starts on an odd or an even page:

  • oddPhysicalPage() yields TRUE if, when the size is computed, the total number of physical pages (including the page currently under construction) is odd.
  • evenPhysicalPage() yields TRUE if, when the size is computed, the total number of physical pages (including the page currently under construction) is even.
Note:

Objects can spill over to subsequent pages. An object for which oddPhysicalPage() yielded TRUE might end on an even page in the final document.

  1. In your report design document, before the object you want to start on an odd or even page, create a Vertical Box or other object.
  2. In the Properties view for the box, set Y-Size to:
    oddPhysicalPage()?0:max