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.

15.3.2 "Reading data" processThe "Reading data" process is run when browsing the records to print (in the print loop), once the record isread.Use examplesThis process is used to:• perform block substitutions (as the next record to print is known).• select records.• perform specific calculations.Note: This code returns True if there are still records to print and False if there is no other record to print.<strong>Reports</strong> based on a text fileFor the reports based on a text file (with programmed read operation), the "Reading data" process is used toread the records found in the text file in order to print them.15.3.3 "Filter" processThis process is run:• when the data source is initialized (for the reports based on a data file, a view or a memory zone)• in the print loop, once the record is read (for the reports based on a query or on a table).This process is used to filter the records that must be displayed in the report.Use examplesThis process is used to:• select records.• perform advanced calculations (subtotal, ...) for the reports based on data files, views or memoryzones.Using the "Filter" processIf this process contains code lines, these code lines must return a value:•Cancel to stop reading the records (and to stop the print).•True to specify that the record corresponds to the filter and that it must be printed.•False to specify that the record does not correspond to the filter and that it must not be printed.15.3.4 "Closing" processThis process is run when the report print is ended, just before closing the report. This process must containno print function.Use examplesThis process is used to:• find out the status of the current print (iReportPrintingStatus).•open a dialog box.Part 1: Report editor 137

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

Saved successfully!

Ooh no, something went wrong!