PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 runtime:
    Composite report at run time
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. 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. Click New among the quick access buttons.
    • The window for creating a new element is displayed: 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, ...). 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.
  • 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" 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 ("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" 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 version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment