PC SOFT

WINDEV的在线文档

  • Overview
  • Creating a Form report
  • Creation
  • Information specific to the form
  • Including a form in a report
  • Including a form in a report
  • Notes
  • Image of the form
  • Multipage report (based on a PDF file)
  • Notes: Using a PDF file in page background
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Overview
The report editor gives you the ability to print reports on pre-printed forms (image file or PDF file). For example, the addresses of the customers can be directly printed on registered mail forms.

In edit, the form is displayed in background image of the report: therefore, the controls can be positioned to the precision of a millimeter.

For example:

At run time, you can specify whether the image of the form must be printed or not. The image of the form is not printed by default.

For example:

Note: To print reports on pre-printed forms, you can:

  • create a "Form" report.
  • include a form in an existing report.

Creating a Form report

Creation

To create a "Form" report, select "File .. New .. Report .. Report on form". The wizard for report creation starts. In this wizard, you must specify:To create a "Form" report:
  • Clickamong the quick access buttons.
  • Click "Report" in the wheel that is displayed.The window for creating a new element is displayed: click "Report" then "Report".
  • The wizard for report creation starts.
In the wizard, select "Report on form" and validate. In this wizard, you must specify:
  • the data source of the report (data file, query, ...). See Data source of a report for more details.
  • the information specific to the form (see the paragraph below).
Note: Before creating the "Form" report, you must scan the entire form and save it as an image file.

Windows支持的图片格式为:
  • Bitmap (*.BMP)
  • 图形交换格式(*.gif)
  • 联合图像专家小组(*.jpg ; *.jpeg)
  • 柯达照片CD(*.pcd)
  • PaintBrush(*.pcx)
  • Adobe Photoshop格式(*.psd)
  • TrueVision TARGA(*.tga)
  • 标记图像文件格式(*.tif ; *.tiff)
    注意: 不支持tiff 6.0标准的"tiled tiff"选项。 在这种情况下,我们建议您以tiff 5.0标准储存图片。
  • Portable Network Graphics (*.png)
  • Windows元文件(*.emf ; *.wmf)
  • 图标(*.ico ; *.icw)
  • 光标(*.CUR) *.cur
  • Portable Document Format (*.pdf)
  • 15版本和更高版本
    Scalable Vector Graphics (*.svg)
    15新版本
    Scalable Vector Graphics (*.svg)
    Scalable Vector Graphics (*.svg)
注意: 若想管理pdf和svg格式,您必须为Windows 2000以及更低版本的计算机安装GDIPLUS.DLL。 对于更高的版本,该DLL由Windows默认提供。 想了解更多信息,请查阅GDI+框架

Information specific to the form

The information specific to the form is as follows:
  • the file containing the image of the form. The size of the report is automatically calculated according to the size of the form image.
    For the A4 format, the size of an image in 75 DPI must be 595 x 842 pixels. For A4 format, the size of an image in 150 DPI must be 1275 x 1753 pixels.
    If the image of the form corresponds to a PDF file containing several pages, you can:
    • print all the pages found in the PDF file. A report made of several pages is created in the report editor.
    • specify the number of the page that must be used as report background. The report will print a single page of the PDF file.
  • whether the image of the form must be printed or not.
    Note: If the image of the form is printed, this image will not be printed beyond the physical margins of the printer.
  • the division of the form according to the number of records printed per page:
    • if the forms contains the characteristics of a single customer, a single record must be printed per page.
      In this case, the created report will only contain the Body block.
    • if the form contains the characteristics of several customers, several records must be printed per page.
      In this case, the created report will contain a Page header block, a Body block and a Page footer block. The Body block will be repeated for each record printed on the page. To print the report properly, you must modify the position of the report controls and the position of the form image in the Body block.
      See "Image of the form" for more details.
      In this case, the created report contains a Page header block, a Body block and a Page footer block. The Body block will be repeated for each record printed on the page. To print the report properly, you must modify the position of the report controls and the position of the form image in the Body block.
      See "Image of the form" for more details.

Including a form in a report
Creating (if necessary) the file corresponding to the form.

If you only have a paper copy of the form, we advise you to scan the form at 100% and to save it as an image.

For the A4 format, the size of an image in 75 DPI must be 595 x 842 pixels.

For A4 format, the size of an image in 150 DPI must be 1275 x 1753 pixels.

Windows支持的图片格式为:
  • Bitmap (*.BMP)
  • 图形交换格式(*.gif)
  • 联合图像专家小组(*.jpg ; *.jpeg)
  • 柯达照片CD(*.pcd)
  • PaintBrush(*.pcx)
  • Adobe Photoshop格式(*.psd)
  • TrueVision TARGA(*.tga)
  • 标记图像文件格式(*.tif ; *.tiff)
    注意: 不支持tiff 6.0标准的"tiled tiff"选项。 在这种情况下,我们建议您以tiff 5.0标准储存图片。
  • Portable Network Graphics (*.png)
  • Windows元文件(*.emf ; *.wmf)
  • 图标(*.ico ; *.icw)
  • 光标(*.CUR) *.cur
  • Portable Document Format (*.pdf)
  • 15版本和更高版本
    Scalable Vector Graphics (*.svg)
    15新版本
    Scalable Vector Graphics (*.svg)
    Scalable Vector Graphics (*.svg)
注意: 若想管理pdf和svg格式,您必须为Windows 2000以及更低版本的计算机安装GDIPLUS.DLL。 对于更高的版本,该DLL由Windows默认提供。 想了解更多信息,请查阅GDI+框架

Including a form in a report

To include a form in a report:
  1. Display the "Background" tab of the report description ("Report description" from the popup menu of the report).
  2. Select the image of the form or the PDF file corresponding to the form.
  3. If the form is a PDF file containing several pages, specify:
    • whether all the pages found in the PDF file must be printed. The report editor will display all the pages of the PDF file. The controls required by the report can be positioned on the different pages of the report in the editor.
    • the page containing the form to use. This page number can be modified by programing with ..页码. The report displayed in the report editor will contain a single page.
  4. Specify whether the image of the form must be printed or not.
    • If the image of the form is printed, this image will not be printed beyond the physical margins of the printer. To print the entire image of the form, we advise you to check "Ignore the physical margins of the printer".
    • If the image of the form must not be printed with the report (printout on a pre-printed form for instance), "Ignore the physical margins of the printer" must not be checked. Otherwise, the printed controls will be shifted in relation to the pre-printed form.

Notes

Image of the form

The image of the form is displayed in the report background. The image is displayed in the background of each report block.

If several blocks are found in the page, you have the ability to position the image in each one of the blocks.

To move the form image displayed in each block:

  1. Click the iconfound in the icon bar. The mouse cursor turns into a hand.On the "修改" pane, in the "对齐方式" group, click "移动背景图片" . The mouse cursor turns into a hand.
  2. Click the block where the image of the form must be moved.
  3. To move the image of a form for a block:
    • to the top or to the bottom: keep the mouse button down and move the mouse.
    • to the left or to the right: keep the mouse button and the [Shift] key down and move the mouse.
  4. Click the icon againto disable the mode for moving the image of the form.To disable the mode for moving the image of the form, on the "修改" pane, in the "对齐方式" group, click "移动背景图片" again.
Note: The cursor must be moved inside the block area in order to be taken into account.

Multipage report (based on a PDF file)

In order for the report to display all the pages of a PDF file, if the report is based on a data file or on a query, the different pages will be printed for each record of the data source used.

Caution: This type of report can consume a large amount of memory resources (especially during the print preview).

Notes: Using a PDF file in page background

  • Using a PDF file in page background requires the GDI+ framework.
  • In the editor, we advise you to use a zoom less than or equal to 100% to better view the PDF file used as report background.