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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

* The order for printing the Start of document, Page header, Page footer and End of document blocks can bemodified in the "Options" tab of the report description ("Report description" from the popup menu of thereport).Reminder: If the destination of the print is an HTML file or an XML file, the Page header and Page footerblocks are generated once only.For more details about:• the processes associated with the blocks, see “Processes of the report blocks”, page 68.• the processes associated with the controls, see “Processes of the report controls”, page 88.• the different types of blocks, see “The different types of blocks”, page 63.• the sort procedures, see “Sort procedure”, page 138.15.3 Processes associated with the reportThe following processes are associated with the reports (order of appearance in the code editor):• Opening• Reading the data•Filter•ClosingThese processes are run when printing the report.15.3.1 "Opening" processThe "Opening" process is run when starting the report print.Use examplesThis process is used to:• declare the global variables of the report.• modify the report bounds with ..MinValue and ..MaxValue.• initialize the passwords of the data files if necessary.• configure the print destination with iPreview or iDestination.• pass parameters to the query linked to the report (iInitReportQuery).• retrieve the parameters passed to the report.• change the data source of the report.Password of the source file of the reportIf the source data file of the report is password protected, this password must be specified before openingthe data file (via HPass for example). If the data file was not opened before printing the report, the passwordcan be specified in the "Opening" process of the report.Initialize the variablesWhen printing a report from the print preview, the report is automatically re-run when:• the user changes printer.• the user clicks one of the buttons found in the toolbar (print in PDF or HTML mode, in an email ...).In this case, the data printed in the report can differ from the data displayed in the preview.The variables used by the report should be initialized in the"Report opening" process rather than in the codeof the button that starts the print.136Part 1: Report editor

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

Saved successfully!

Ooh no, something went wrong!