|
|
|
|
|
- Principle
- Remarks
- Limitations
iInitReportVerso (Function) In french: iInitEtatVerso Initializes the parameters of a report to be printed on the verso side of another report. For example, this makes it possible to print general terms and conditions on the verso side of an invoice.
iInitReportVerso(RPT_GTC)
iPrintReport(RPT_Invoice, InvoiceNum)
iDestination(iViewer)
iInitReportVerso(RPT_GTC)
iSequencingAdd(RPT_Report1)
iSequencingAdd(RPT_Report2, 3)
iSequencingPrint()
Syntax
iInitReportVerso(<Report used> [, <Parameter 1> [... [, <Parameter N> [, <Options>]]]])
<Report used>: Name of the report or string Report to be printed on the verso side: - Name of the report, defined in the report editor.
- Physical name of the report (including its path) if the compiled code is included in the report.
<Parameter 1>: Optional parameters (the type corresponds to the parameter type) Optional parameter expected by the report. This parameter is defined in the opening code of the report. This parameter can be the name of a view, the name of a memory area, etc. Caution: If the report includes values with bounds, the first two parameters must correspond to the lower and upper bounds. <Parameter N>: Optional parameters (the type corresponds to the parameter type) Optional parameter expected by the report. This parameter is defined in the opening code of the report. This parameter can be the name of a view, the name of a memory area, etc. Caution: If the report includes values with bounds, the first two parameters must correspond to the lower and upper bounds. <Options>: Integer constant Management mode of double side: | | backDefault (Default value) | If the two reports have a different number of pages, additional blank pages are added to either report so that the total number of pages is the same on both sides. | versoRepeated | If the number of pages in the report corresponding to the front side is greater than the number of pages in the report corresponding to the reverse side, the pages on the reverse side are repeated until the end of the document. | versoSansPageBlanche | If the number of pages in the report corresponding to the reverse side is greater than the number of pages in the report corresponding to the front side, the rest of the pages on the reverse side will be printed on both the front and reverse sides (to avoid blank pages). |
Warning This parameter is only available from version 2025 Update 1. Remarks Principle iInitReportVerso allows you to print a report on the verso side of another report or a sequence of reports. To achieve this, the print job will alternate between the main report and the report on the verso side: - Page 1: First page of the main report.
- Page 2: First page of the report on the verso side.
- Page 3: Second page of the main report.
- Page 4: Second page of the report on the verso side.
- etc.
Remarks - Duplex mode is used automatically if the print job is sent to a printer that supports duplex printing.
- The report printed on the verso side takes the format of the report printed on the recto side.
- Pages are numbered for EACH report.
- In the report viewer, double-sided pages are displayed side by side, both in the thumbnails and in the preview. All front pages are displayed in one column and all back pages in the second column.
- If the report on the verso side is based on a query, the query must be initialized using iInitReportQuery in the report initialization code.
Limitations - iInitReportVerso cannot be used with reports containing pages with different orientations.
- To print a recto side different from the verso side, you need to use two reports: the main report (or sequence of reports) on the recto side, and another report on the verso side. It is not possible to obtain different sides programmatically, without using two distinct reports.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|