PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Creating the report in edit
  • Characteristics of edit controls
  • Processes associated with an edit control found in a report
  • Input in the preview window
  • Input in a PDF file
  • Input in a report based on a PDF form
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 allows you to create reports that include edit controls. These reports can be generated in PDF format.

This gives you the ability to distribute reports (in PDF format if necessary) allowing the user to perform a direct input in the specified areas: administrative form (tax return, registration, ...).

The data can be printed or stored in a database (when the input is performed from the print preview). Then, the report becomes an entry form.

The edit controls can be used on all types of reports. In most cases, the edit controls are used on the Form reports, using a PDF in report background for example.

How to proceed?

Creating the report in edit

To create a report in edit:
  1. Create a report according to your requirements (see Creating a report).
  2. Create the the edit controls in the areas where an input must be performed.
  3. Save the report.
  4. During a print, the user will be able to directly enter data in the edit controls. The input is available:
    • in the print preview.
    • in the reports printed in PDF format.

Characteristics of edit controls

When creating an edit control in a report, you have the ability to define:
  • the type of control (text, numeric, date, time),
  • the associated mask: the available masks are the ones supported by the PDF format. They are available for the numerics, the dates and the times.
  • the input size, which means the maximum number of characters allowed in the control. If this parameter is set to 0, there is no limit.
  • the horizontal alignment,
  • whether there is a border around the input area.
  • the initial value,
  • the style of the caption and input area.
Notes:
  • Multi-line edit control: if the users enter more lines than it is visible, the lines that are not visible will not be printed. During the input, the edit controls manage a vertical scrollbar.
  • Style of the input area: In this version, only the "Arial" font can be used.
  • The edit control is not linked to an item found a data file or in a query, nor to a variable. To display information coming form a file, a query or a variable, the control must be assigned by programming.
  • The border of the input area cannot be configured (thickness, color, ...). You only have the ability to make it visible or invisible.
  • No currency type can be used (the Euro symbol is not supported).

Processes associated with an edit control found in a report

The processes associated with an edit control found in a report are as follows:
ProcessRuntime condition
InitializationRun when opening the report.
Before printingRun before printing the control.
EntryRun when the input cursor enters in the control.
ExitRun when changing control (TAB key, change of control with the mouse, ...).
ModificationRun whenever the content of the control is modified (typing or erasing a character for example).

Input in the preview window
WinDevWindows When a report is displayed in print preview, the edit controls are enabled.

In this case, the user will be able to enter the requested information and print the report in one of the available formats. A message is displayed in the print preview to inform the user of the ability to enter information.

By default, the user can browse the edit control via the TAB key: the available controls are browsed from top to bottom and from left to right.

Notes:

  • The processes associated with the edit controls are run when the controls are handled in the print preview.
  • The data coming from the database can be displayed by programming. To do so, link the report to a data file or to a query and assign the requested item to the edit control in the "Pre-print" process of the edit control.
  • The data modified by the user in the preview window can be saved by programming. Let's take a simple example, the modification of a record displayed in the report. In each edit control whose value must be modified, you must:
    - assign the entered value to the item
    - modify the record.
    These actions are performed in the "Exit from control" process.
    For example, to modify the customer name, the corresponding code is as follows:
    Customer.NameEDT_Name
    H修改Customer

Input in a PDF file
When a report is printed in a PDF file, the edit controls are enabled. In this case, the user will be able to enter the content of the different edit controls and to print the PDF file with the entered values.

Notes:

  • The edit controls are used to enter information in the PDF file. This information will be used during the print. If the end user owns a full version of Adobe Acrobat, the data entered can be saved in PDF format (Acrobat Reader cannot be used to save the PDF files).
  • The data coming from the database can be displayed by programming. To do so, link the report to a data file or to a query and assign the requested item to the edit control in the "Initialization" or "Pre-print" process of the edit control.

Input in a report based on a PDF form
The edit controls are well suited to the "Form" reports. The "Form" reports are based on an image file or on a PDF file.

For a PDF form containing several pages, you have the ability to create a report displaying the different pages of the PDF file ("Print all the pages found in the PDF" option in the "Background" tab of the report description).

These pages are visible and they can be modified in the report editor: the edit controls can be positioned on any page of the report.

See Reports on form for more details.