Create multi-page ISO reports (PHP)
For reports printed on ISO and JIS-sized pages, you can configure the output to print several logical pages per physical page.
Use these PHP functions to change the output options:
selectLogicalPageMapping("multipage")
to change the logical page mapping, allowing the printing of multiple pages per physical page.configureMultipageOutput(pageExponent, isoNumber, portrait)
to configure the required number of pages. The parameters are:- pageExponent String - Specifies the number of pages to print. The actual number of pages is calculated by multiplying the page exponent number that you specify by 2. In the example there will be 2 * 2 = 4 pages per physical page.
- isoNumber Integer - Specifies the ISO number. This parameter is optional (indicated by passing a null value). If no value is specified, the page size of the logical page is taken from the 4rp file (if specified). In the example, 4 refers to ISOA4.
- portrait boolean - TRUE specifies that the page is in portrait orientation; FALSE= landscape. This parameter is optional (indicated by passing a null value). If no value is specified, the orientation of the logical page is taken from the 4rp file.
Note: Genero Report Writer for PHP does not support ASCII reports. You must use a .4rp
report.
Example
function:
// Create the report engine
$designFile = "OrderReport.4rp";
$reportClassName = "OrderReport\OrderReport"
$greRunnerObj = new FourjsReportRuntime($designFile, $reportClassName);
$greRunnerObj->configureDistributedProcessing("127.0.0.1",7000);
$greRunnerObj->selectLogicalPageMapping("multipage");
$greRunnerObj->configureMultipageOutput(2,4,TRUE);
For the full list of properties and methods, refer to the Genero Report Writer PHP API documentation.