13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Create a new sub-report:1. Select:• the type of sub-report to create (form, table, …). See “The different types of reports”, page 26 for moredetails.• the data source of the sub-report (data file, query, …). See “<strong>Source</strong> of the report”, page 35 for moredetails.• 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 name of thesub-report is: "S".9.3 Characteristics of <strong>com</strong>posite reports and sub-reports9.3.1 Characteristics of <strong>com</strong>posite reports• The <strong>com</strong>posite report includes several sub-reports. All the sub-reports are directly viewed in the report editor.• The <strong>com</strong>posite report has a name, as well as each sub-report. The different sub-reports of the <strong>com</strong>positereport are listed in the "Project explorer" pane.• To view the description window of the <strong>com</strong>posite report, you can:• On the "Modification" pane, click the group button of the "Composite report" group .• Select "Description of <strong>com</strong>posite report" from the popup menu of the report.• The description window of the <strong>com</strong>posite 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 behavior if the sub-reports are empty ("Details" tab).• Make the report modifiable in <strong>Reports</strong> & <strong>Queries</strong> ("Details" tab).• Define the languages supported by the report ("Language" tab).• Manage the sub-reports ("Sub-reports" tab): you have the ability to add, delete sub-reports, modify theorder in which they are printed, …9.3.2 Characteristics of sub-reports• The sub-reports can be accessed in the editor by opening the <strong>com</strong>posite report.• To view the description window of the sub-report:•Click in the sub-report.• On the "Modification" pane, click the group button of the "Sub-report" group or select "Descriptionof sub-report" 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.• To modify the report displayed by a sub-report by programming, use iChangeSubReport<strong>Source</strong>.Part 1: Report editor 105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!