ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Report editor / Types of reports
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 runtime:
    Composite report at runtime
Remark: 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. For more details, see Internal Report control.
  • the sequencing of reports that can be performed through programming. This method can be easily implemented. For more details, see Sequencing reports.
  • the nested reports, that are used to create sequences of complex reports, with management of page footers. For more details, see Nested reports.
Creating a composite report
To create a "Composite" report:
  1. Click New in the quick access buttons.
    • The new element window appears: click "Report" then "Report".
    • The report creation wizard starts.
  2. Select the type of report: "Composite report". Go to the next step of the wizard 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 step of the wizard.
  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, ...). For more details, see Types of reports.
      • the data source of the sub-report (data file, query, ...). For more details, see Report data source.
      • 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.
  • Use 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:
    • On the "Modification" tab, click the dialog box launcher of the "Composite report" group.
    • Select "Composite report description" in the context 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 available in the report viewer ("UI" tab).
    • Define the behavior if the sub-reports are empty ("UI" 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. On the "Modification" tab, click the dialog box launcher 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 through 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 version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help