PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Sequence of processes
  • 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 processes
Several operations are performed when printing a report. These operations are performed in the following order:
1.Running the "Opening" process of report.
2.
Versions 21 and later
WINDEVReports and Queries Running the "Before re-printing" process of the report (for a direct print from the print preview or from an export from the print preview).
New in version 21
WINDEVReports and Queries Running the "Before re-printing" process of the report (for a direct print from the print preview or from an export from the print preview).
WINDEVReports and Queries Running the "Before re-printing" process of the report (for a direct print from the print preview or from an export from the print preview).
3.Running the "Initialization" processes of blocks and the "Initialization" processes 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 processes (*).
9.Printing the Page Header block and running its processes for each report page (*).Printing the Page Header block and running its processes for each report page (*).
10.Print loop:
  • Reading the record
  • Running the "Filter" process of the report (for the reports based on a query or on a table). If not OK, goes to the next record.
  • Performing calculations on the values of items
  • Running the "Read" process of the report
  • Test of the break:
    • on the break item for the automatic breaks.
    • on the value returned by the "Break" process 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 "Before printing" process of the block and the "Before printing" process of block controls.
  • Performing calculations on the controls of the block.
  • Enlarging the controls and the auto-sizable blocks.
  • Printing and running the "After printing" process of the block.
11.Printing the End of Document block and running its processes (*).
12.Printing the Page Footer block and running its processes for each report page (*).Printing the Page Footer block and running its processes for each report page (*).
13.Running the "Closing" process of 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 processes 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 processes of the "Page header" block for the next page.
  • Running the "After printing" process of the block.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment