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.

5.6.1 Processes of the report blocksThe processes associated with the report blocks are as follows:ProcessesInitializationPre-printPre-print (continues)Post-printBreak?Runtime conditionRun when initializing the block. The order in which the processes are run when printinga report (including when running a test) is as follows:• "Report opening" process.• "Initialization" process of the report blocks.• "Initialization" process of the controls.This process is used to:• initialize the "Calculated" controls.• initialize the global variables declared in the "Start of print" process of thereport.• perform block substitutions.Before printing a block, the following operations are performed:• read the current record.• assign the values read in the block controls.• perform calculations on the values of the items.• run the "Pre-print" process of the block.• perform calculations on the block controls.When this process is called, the report editor checks whether there is enoughspace left on the current page to print the current block (case of non-breakableblock). If there is not enough space to print the current non-breakable block, it willbe printed on the next page (as well as the Page Footer, Page Header and BodyComplement blocks if necessary).If the block is auto-sizable, the "Pre-print" process is run before knowing whetherthe block can be printed on the page or not.This process is used to:• see and modify the controls of the relevant block.• assign images.•run iPageEnd in the Break Header block.Caution: This process cannot be used to substitute the current block. However, itcan request the substitution of another block (iSubstBlock).Run once the block is printed.This process is used to:• see and modify the controls of the relevant block.• assign images.• reset the controls that have just been printed.• substitute the blocks (taken into account for the next blocks).• print an Iteration block (iPrintBlock)(Break header block only)Run before the "Pre-print" process of the Break header block.See ’“Break process”, page 138 for more details.68Part 1: Report editor

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

Saved successfully!

Ooh no, something went wrong!