Set values for the page height and page width.


   pageWidth STRING,
   pageHeight STRING)
  1. pageWidth - width of the page (e.g. a4width).
  2. pageHeight - height of the page (e.g. a4length).


For most reports, the page dimensions are read from the .4rp file. This function is used to override the values found there. For example, you can use this function to swap the page orientation from portrait to landscape, or vice versa.

For Genero ASCII compatibility reports that run in graphical mode (where no 4rp file is used), this function is necessary to set the height and width.

See Dimensions for additional examples of the strings that can be used in these parameters.


This sample code swaps the length and width, and therefore sets the page orientation to landscape:

CALL fgl_report_configurePageSize("a4length","a4width") 

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.