ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Report editor / Nested reports
  • Principle
  • Example
  • Example to perform
  • Corresponding code
  • WLanguage functions specific to the nested reports
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Principle
To create a main report containing several secondary reports:
  1. Set the printing destination of the main report using iDestination.
  2. Specify the name of the main report to print with iPrintReport.
Remarks:
  • If additional parameters must be passed to the main report, these parameters must be specified in iPrintReport, after the name of the report. For more details, see Report with parameters.
  • iListNestedReports returns the list of secondary reports nested in a main report.
  • To print reports with different orientations (portrait/landscape), we recommend that you use the sequencing of reports. This method can be easily implemented. For more details, see Sequencing reports.
Example

Example to perform

The "RPT_OrderReport" report includes a main report and a secondary report.
The "RPT_OrderReport" report is printed when the "Print" Button control is clicked on.

Corresponding code

In this example, the click code of "Print" Button control is as follows:
WLanguage functions specific to the nested reports
The following functions are used to manage the nested reports:
iListNestedReportsReturns:
  • the list of nested reports currently printed (reports run by iPrintReport in one of the processes of the report currently printed).
  • the list of sequenced reports currently printed (iSequenceAdd).
iNestedHeaderFooterPrints (or not) the page headers and footers of nested report.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help