|
|
|
|
|
- Initializing the data sources of sequenced reports
- Managing the page numbers
- Using global variables
iSequencingAdd (Function) In french: iEnchaînementAjoute Adds a report into a sequence of report prints. Note: Chaining report printouts allows you to print different reports in succession, visible as a single printout in the report viewer. You can add various types of documents in this sequence. For more details, see Sequencing reports.
iDestination(iViewer) iSequencingAdd(RPT_Report1) iSequencingAdd(RPT_Report2, 3) iSequencingPrint()
iDestination(iViewer)
FOR EACH Activities
iSequencingAdd(RPT_Activities, Activities.ActivitiesID, Activities.ActivitiesID)
iSequencingAdd(RPT_Devices, Activities.ActivityName)
END
iSequencingPrint()
Syntax
iSequencingAdd(<Report> [, <Parameter 1> [... [, <Parameter N>]]])
<Report>: Character string State name: - Logical name of 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. Warning: This parameter is passed by state value and not by address.. <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. Warning: This parameter is passed by state value and not by address.. Remarks Initializing the data sources of sequenced reports The states are not executed when the iSequencingAdd function is run: only their names and parameters are stored.. Warning: If any of the reports in the sequence are based on a query, the query must be initialized using function iInitReportQuery in the "Initialization" event of the report (and not before calling function iSequencingAdd).. Managing the page numbers If the reports found in the sequencing display the page number, the page numbers will be continued for the different reports. For example, if the first report of the sequencing is numbered from 1 to 10, the second report will be numbered from 11 to 20, and so on. To force the page number of a report in the sequence, use iPageNum in the desired report. Using global variables Sequenced reports can handle global variables in the different WLanguage events associated with the report. In this case, the value of the global variable taken into account is the one of the report or the print preview. If the value of a global variable changes between the call to iSequencingAdd and iSequencingPrint, its value in the report will be the last value assigned to it. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|