PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a composite report
  • Characteristics of composite reports and sub-reports
  • Characteristics specific to the composite reports
  • Characteristics of sub-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
Overview
The report editor gives you the ability to create "Composite" reports. In this case, the report includes several sub-reports. Each sub-report can display a different set of data and use a specific orientation. The different sub-reports are printed one after another.
For example:
  • In the editor:
    Composite report in the editor
  • At run time:
    Composite report at run time
Versions 18 and later
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Note : The report editor proposes several methods for printing several reports in a single document:
  • the internal reports, that are used to print several reports side by side. See Internal Report control for more details.
  • the sequencing of reports that can be performed by programming. This method can be easily implemented. See Sequencing reports for more details.
  • the nested reports, that are used to create sequences of complex reports, with management of page footers. See Nested reports for more details.
Creating a composite report
To create a "Composite" report:
  1. Select "File .. New .. Report". The wizard for report creation starts.Click New among the quick access buttons.
    • Click "Report" in the wheel that is displayed. The window for creating a new element is displayed: click "Report" then "Report".
    • The wizard for report creation starts.
  2. Select the type of report: "Composite report". Go to the next wizard step via the arrow buttons.
  3. Specify in the wizard the number of sub-reports that will be included in the composite report. Go to the next wizard step.
  4. Give a name to your report and validate.
  5. The composite report appears in creation in the report editor. You must define the characteristics of each sub-report.
For each sub-report:
Click the link "<Click here to define the sub-report>". The wizard for defining the sub-report is displayed. You can:
  • Create a new sub-report.
    1. Select:
      • the type of sub-report to create (form, table, ...). See Types of reports for more details.
      • the data source of the sub-report (data file, query, ...). See Data source of report for more details.
      • the elements of the sub-report (controls, sort conditions, breaks, ...).
    2. Give a name to the sub-report and validate the creation of the sub-report.
  • Using an existing report.
    1. Select the report to display in the sub-report.
    2. Give a name to the sub-report and validate the creation of the sub-report. By default, the sub-report is named: "S<ReportName>".
Characteristics of composite reports and sub-reports

Characteristics specific to the composite reports

  • The composite report includes several sub-reports. All the sub-reports are directly viewed in the report editor.
  • The composite report has a name, as well as each sub-report. The different sub-reports of the composite report are listed in the "Project explorer" pane.
  • Several methods can be used to view the description window of the composite report:
    • Select "Report .. Description of composite report".On the "Modification" pane, click the group button of the "Composite report" group.
    • Select "Description of composite report" from the popup menu of the report.
  • The description window of the composite report is used to:
    • Define the caption of the report and its name ("General" tab).
    • Define the export buttons found in the preview ("Details" tab).Define the export buttons found in the preview ("GUI" tab).
    • Define the behavior if the sub-reports are empty ("Details" tab).Define the behavior if the sub-reports are empty ("GUI" tab).
    • Make the report modifiable in Reports & Queries ("Details" tab).
    • Define the languages supported by the report ("Language" tab).
    • Manage the sub-reports ("Sub-reports" tab): you have the ability to add or delete sub-reports, to modify their print order, ...

Characteristics of sub-reports

  • The sub-reports can be accessed in the editor by opening the composite report.
  • To view the description window of the sub-report:
    1. Click in the sub-report.
    2. Select "Report .. Description of sub-report" or select "Description of sub-report" from the popup menu of the report.On the "Modification" pane, click the group button of the "Report" group. You also have the ability to select "Sub-report description" from the popup menu of the report.
  • The description window of the sub-report is used to select the report to display.
  • The sub-reports can be reports with parameters. In this case, to initialize the parameters of the sub-report, you must use iInitSubReport.
  • The report displayed by a sub-report can be modified by programming via iChangeSubReportSource.
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 16
This page is also available for…
Comments
Click [Add] to post a comment