PC SOFT

WINDEV的在线文档

  • Sequence of processes
  • Special cases
  • "Page break after block" option
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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 the report
2.Running the "Initialization" processes of blocks and the "Initialization" processes of controls
3.Initializing the data source
4.For the reports based on a HFSQL data file, view or memory zone:
5.Initializing the margins and defining the Portrait/Landscape mode
6.Resizing the report (if necessary) according to the specified format
7.Printing the Start of Document block and running its processes (*)
8.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 (*)
9.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" processes of the block and the "Before printing" processes of block controls
  • Performing calculations on the block controls
  • Resizing the auto-sizable controls and blocks
  • Printing and running the "After printing" process of the block
10.Printing the End of Document block and running its processes (*)
11.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 (*)
12.Running the "Closing" process 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 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.