PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Initializing the data sources of sequenced reports
  • Managing the page numbers
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a report into a sequence of report prints.
Note: The sequence of report prints is used to print different reports one after another, visible in the same print preview. See Sequencing reports for more details.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
iPreview()
iSequencingAdd(RPT_Report1)
iSequencingAdd(RPT_Report2, 3)
iSequencingPrint()
iPreview()
FOR EACH Activities
// Adds the report of activities for the current activity
iSequencingAdd(RPT_Activities, Activities.ActivitiesID, Activities.ActivitiesID)
// Adds the report of devices corresponding  the current activity
iSequencingAdd(RPT_Devices, Activities.ActivityName)
END
iSequencingPrint()
Syntax
iSequencingAdd(<Report Name> [, <Parameter 1> [, <Parameter 2> [, ...]]])
<Report Name>: Character string (with or without quotes)
  • Logical name of report, defined in the report editor.
  • Physical name of report (including its path) if the compiled code is included in the report.
WEBDEV - Server code This parameter must correspond to the logical name of report.
<Parameter 1>: Optional parameters (the type corresponds to the parameter type)
Optional parameter expected by the report. This parameter was defined in the opening code of report. This parameter can be the name of a view, the name of a memory zone, etc.
Caution: If lower bounds and upper bounds have been specified for the report, the first two parameters must correspond the lower bound and to the upper bound (respectively).
<Parameter 2>: Optional parameters (the type corresponds to the parameter type)
Optional parameter expected by the report. This parameter was defined in the opening code of report. This parameter can be the name of a view, the name of a memory zone, etc.
Caution: If lower bounds and upper bounds have been specified for the report, the first two parameters must correspond the lower bound and to the upper bound (respectively).
Remarks

Initializing the data sources of sequenced reports

The reports are not run when running iSequencingAdd: only their name and their parameters are stored.
These reports are actually run during the call to iSequencingPrint.
Caution: If the reports found in the sequence are based on a query, the query must be initialized by iInitReportQuery in the initialization code of report (and not before the call to 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 found in the sequence, use iPageNum in the requested report.
Related Examples:
WD Reports Training (WINDEV): WD Reports
[ + ] This example presents the different methods for creating a report:

- prints based on different data sources (queries, variables, ...)
- prints based on controls (Table, Spreadsheet, PVT, ...)
- printing composite reports
- specific prints (portrait/landscape, report with watermark, report with bar code, ...)
Components
WINDEVWEBDEV - Server codeReports and Queries wd230etat.dll
Linux wd230etat.so
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment