PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Principle
To create a main report containing several secondary reports:
  1. Configure the print destination of main report with iPreview or iDestination.
  2. Specify the name of main report to print in iPrintReport.
Notes:
  • If additional parameters must be passed to the main report, these parameters must be specified in iPrintReport, after the report name. See Report with parameters for more details.
  • iListNestedReports returns the list of secondary reports nested in a main report.
  • Versions 17 and later
    To print reports with different orientations (portrait/landscape), we recommend that you use the sequencing of reports. This method can be easily implemented. See Sequencing reports for more details.
    New in version 17
    To print reports with different orientations (portrait/landscape), we recommend that you use the sequencing of reports. This method can be easily implemented. See Sequencing reports for more details.
    To print reports with different orientations (portrait/landscape), we recommend that you use the sequencing of reports. This method can be easily implemented. See Sequencing reports for more details.
Example

Example to perform

The "RPT_OrderReport" report includes a main report and a secondary report.
The "RPT_OrderReport" report is printed during a click on the "Print" button.

Corresponding code

In this example, the click code of "Print" button is as follows:
WINDEV WINDEV code:
// Open the preview window
iPreview()
// Print the RPT_OrderReport report
iPrintReport(RPT_OrderReport)
WEBDEV - Server code WEBDEV code:
// Configure the destination of the print
iDestination(iHTML, fWebDir() + "\Report.htm")
// Print the RPT_OrderReport report
iPrintReport(RPT_OrderReport)
// Send the file to the browser
FileDisplay(fWebDir() + "\Report.htm")
WINDEV Mobile WINDEV Mobile code:
// Configure the destination of the print
iDestination(iPCL, "\\MyNetwork\MyPrinter")
// Print the RPT_OrderReport report
iPrintReport(RPT_OrderReport)
WLanguage functions specific to the nested reports
The following functions are used to manage the nested reports:
Versions 09 and later
iListNestedReports
New in version 09
iListNestedReports
iListNestedReports
Returns:
  • 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).
Versions 09 and later
iNestedHeaderFooter
New in version 09
iNestedHeaderFooter
iNestedHeaderFooter
Prints (or not) the page headers and footers of nested report.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment