PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
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
Overview
In some cases, you may want to print several reports one after another, and view them in the same print preview.
The composite reports can be use for this purpose when the sequence of reports is known in advance.
If the sequence is not known in advance and if it must be programmed, the sequence of reports can be used by programming.
Sequence of reports
WindowsLinux Note: You also have the ability to add into the sequence:
  • Versions 22 and later
    a Word Processing document.
    New in version 22
    a Word Processing document.
    a Word Processing document.
  • Versions 23 and later
    a PDF document.
    New in version 23
    a PDF document.
    a PDF document.
Versions 18 and later
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This feature is now available for the iPhone/iPad applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
How to proceed?
To sequence the reports by programming:
  1. To add:
    • a report to the sequence, use iSequencingAdd. This function must be used for each report that will be added to the sequence. This function is used to pass parameters to the report to print.
    • Versions 22 and later
      WindowsLinux a Word Processing document to the sequence, use iSequencingAddDoc. This function is used to specify the Word Processing document that will be printed.
      New in version 22
      WindowsLinux a Word Processing document to the sequence, use iSequencingAddDoc. This function is used to specify the Word Processing document that will be printed.
      WindowsLinux a Word Processing document to the sequence, use iSequencingAddDoc. This function is used to specify the Word Processing document that will be printed.
    • Versions 23 and later
      WindowsLinux a PDF document to the sequence, use iSequencingAddPDF. This function is used to specify the PDF document that will be printed.
      New in version 23
      WindowsLinux a PDF document to the sequence, use iSequencingAddPDF. This function is used to specify the PDF document that will be printed.
      WindowsLinux a PDF document to the sequence, use iSequencingAddPDF. This function is used to specify the PDF document that will be printed.
  2. To end the sequence and to start the print, use iSequencingPrint.
Example:
iPreview()
iSequencingAdd(RPT_Portrait)
iSequencingAdd(RPT_Landscape)
iSequencingPrint()
Notes:
  • The pages of the reports found in the sequence are numbered sequentially. The numbering can be modified by iPageNum.
  • The reports found in the sequence can have different orientations (portrait and/or landscape).
  • 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 the report (and not before the call to iSequencingAdd).
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, ...)
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment