PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Sequence of events
  • Special cases
  • "Page break after block" option
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
Sequence of events
Several operations are performed when printing a report. These operations are performed in the following order:
1.Running the "Opening" event of the report.
2.
Versions 21 and later
WINDEVReports and Queries Running the event "Before re-printing" of the report (for a direct print from the print preview or an export from the print preview).
New in version 21
WINDEVReports and Queries Running the event "Before re-printing" of the report (for a direct print from the print preview or an export from the print preview).
WINDEVReports and Queries Running the event "Before re-printing" of the report (for a direct print from the print preview or an export from the print preview).
3.Running the "Initializing" events of blocks and the "Initializing" events of controls.
4.Initializing the data source.
5.For the reports based on a data file, a HFSQL view or a memory zone:
6.Initializing the margins and defining the Portrait/Landscape mode.
7.Resizing the report (if necessary) according to the specified format.
8.Printing the Start of document block and running its events (*).
9.Printing the Page header block and running its events for each report page (*).Printing the Page header block and running its events for each report page (*).
10.Print loop:
  • Reading the record
  • Running the "Filter" event of the report (for reports based on a query or table). If not OK, goes to the next record.
  • Performing calculations on the values of items
  • Running the "Read" event of the report
  • Test of the break:
    • on the break item for the automatic breaks.
    • on the value returned by the "Break" event for the programmed breaks.
      If OK, change of break and print one or more Break header and Break footer blocks.
  • Printing the Body block.
Note: When printing a Break header, Break footer or Body block, the following operations are performed:
  • Running the event "Before printing" of the block and "Before printing" of block controls.
  • Performing calculations on the controls of the block.
  • Enlarging the controls and the auto-resizable blocks.
  • Printing and running the "After printing" event of the block.
11.Printing the End of document block and running its events (*).
12.Printing the Page footer block and running its events for each report page (*).Printing the Page footer block and running its events for each report page (*).
13.Running the "Closing" event of the report.
(*) The order in which the Start of document, Page header, Page footer and End of document blocks are printed can be modified in the "Options" tab of the report description ("Report description" from the popup menu of the report).(*) The order in which the Start of document, Page header, Page footer and End of document blocks are printed can be modified in the "Options" tab of the report description ("Report description" from the popup menu of the report).
Reminder : If the destination of the printout is an HTML or XML file, the Page Header and Page Footer blocks are generated once only.
Special cases

"Page break after block" option

If "Page break after block" is checked in the block description, the sequence of the events is as follows:
  • Running the "Before printing" code of the block.
  • Running the processes of the "Page header" block for the next page.Running the events of the "Page header" block for the next page.
  • Running the event "After printing" of the block.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment