PC SOFT

WINDEV的在线文档

  • Substituting the first block of the page header
  • Substituting the Page Footer block
  • Various
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Substitutes a report block for another block while the report is printed.

Once 打印替换块 has been run, the following processes are run when the initial block is printed:

  • Pre-print process of the substitution block.
  • Print the substitution block.
  • "End of print" process of the substitution block.
15版本和更高版本
WinDevLinux This function is now available for the WinDev applications in Linux.
Linux This function is now available for the WinDev sites in Linux.
Linux Caution: The use of this function in Linux requires a specific configuration. See Printing in Linux for more details.
15新版本
WinDevLinux This function is now available for the WinDev applications in Linux.
Linux This function is now available for the WinDev sites in Linux.
Linux Caution: The use of this function in Linux requires a specific configuration. See Printing in Linux for more details.
WinDevLinux This function is now available for the WinDev applications in Linux.
Linux This function is now available for the WinDev sites in Linux.
Linux Caution: The use of this function in Linux requires a specific configuration. See Printing in Linux for more details.
例子
// Substitute the page header
打印替换块PageHeaderIteration1
// End of substitution for the page header
打印替换块PageHeader""

语法
打印替换块(<Name of Block to Substitute> , <Name of New Block>)
<Name of Block to Substitute>: Character string with or without quotes
Logical name of the block to replace. This name was defined in the report editor, in the block description ("General" tab, "Name" control).
<Name of New Block>: Character string with or without quotes
Logical name of the block used for the substitution. This name was defined in the report editor, in the block description.
If this parameter corresponds to an empty string, the current substitution for the <Name of Block to Substitute> is canceled.
If this parameter is equal to <Name of Block to Substitute>, the current substitution is canceled.

注意

Substituting the first block of the page header

To substitute the first block of the page header, 打印替换块 must be used in the opening code of the report (in the code of the "Start of document" block or in the initialization code of the report for example). These codes will be run before this block is printed.

Substituting the Page Footer block

To avoid display problems, the Page Footer block and its substitution block must have the same height.

Various

  • You will get the same result by performing the following operations:
    1. Make the block invisible (..可见).
    2. Use 打印块.
  • To substitute a Page Footer block, we recommend that you use blocks with the same height.
  • 19版本和更高版本
    In most cases, we recommend that you use planes in the report as they are easier to use and to implement (rather than block substitution). See The planes for more details.
    19新版本
    In most cases, we recommend that you use planes in the report as they are easier to use and to implement (rather than block substitution). See The planes for more details.
    In most cases, we recommend that you use planes in the report as they are easier to use and to implement (rather than block substitution). See The planes for more details.

组件
WinDev wd200etat.dll
Linux wd200etat.so