PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Running the test of the current report
  • Stopping the test of a report
  • Notes
  • Directory of the files used for test
  • Managing the passwords (analysis or data file)
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
Running the test of a single report allows you to run the current report in WinDev, WebDev or WinDev Mobile. Like for the project test, the debugger can be started as soon as a problem occurs.

Note: The test of the report is run on the development computer only. The data used for test corresponds to the data found on the development computer.

The following processes are run during the test of a report:

  • Initialization process of the project.
  • Processes associated with the report.
  • Processes associated with the report blocks.
  • Processes associated with the report controls.
See Sequence of processes associated with the reports, Processes associated with a report, Processes associated with the report blocks and Processes associated with the report controls for more details.

Note: The test of the report is available for the reports based on a query, a data file, a text file and for the reports associated with no data source. For the other types of reports, you must run the test of the element (window, page or project) from which the report is printed.

ImportantWhen running the test of a report in Reports & Queries, the initialization process of the project is run.

How to proceed?

Running the test of the current report

To run the test of the current report:
  1. Click.Clickamong the quick access buttons (F9 key).
  2. A screen allows you to choose the print mode of the report:
    The available options are:
    • Print preview: used to preview the report as it will be printed.
    • Printer: the report is printed on the default printer.
    • HTML file: the report is saved in an HTML file and displayed in the Internet browser installed on the computer.
    • RTF file: the report is saved in an RTF file and displayed in a text editor (Word for example).
    • PDF file: the report is saved in a PDF file and displayed in a PDF viewer (Acrobat Reader for example).
    • 17版本和更高版本
      Generic PDF file: the report is saved in a generic PDF file (independent of the printer) and displayed in a PDF viewer (Acrobat Reader for example).
      17新版本
      Generic PDF file: the report is saved in a generic PDF file (independent of the printer) and displayed in a PDF viewer (Acrobat Reader for example).
      Generic PDF file: the report is saved in a generic PDF file (independent of the printer) and displayed in a PDF viewer (Acrobat Reader for example).
      See Print modes of a report for more details .
  3. Choose the print mode and validate. If your report is not saved, WinDev, WebDev or WinDev Mobile automatically proposes to save it under the name given in the wizard for report creation.
  4. Specify the additional information if necessary:
    • If the report is bounded, a window allows you to enter the bounds of the report. See Bounded report for more details.
    • If the report is based on a query with parameters, a window allows you to enter the parameters of the query. See Report on query with parameters for more details.
    • If the report expects parameters, give a default value to the parameters in the declaration of parameters. See Passing parameters to a report for more details.

18版本和更高版本
Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

18新版本
Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

Stopping the test of a report

Several methods can be used to stop the test:
  • 1st method: Close the preview of the report whose test is currently run. The current editor at the time the test was started is displayed.
  • 2nd method: Go back to the editor with the taskbar or with [Alt]+[Tab] and confirm that the test must be stopped. The current editor at the time the test was started is displayed.
  • 3rd method: Go back to the editor with the taskbar or with [Alt]+[Tab] and click("End the test" option) found in the "Debugger" pane.

Notes

Directory of the files used for test

To specify the data files used when running the test of the application in the editor:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "项目" pane, in the "项目" group, click "描述".
  2. In the "Files" tab, select the location of test files:
    • Directory of the current configuration (option selected by default): The data files will be found in the sub-directory corresponding to the current configuration (sub-directory of EXE directory of the project).
    • Specific directory: The data files will be found in the specified directory.
    • Data directory of the application: This choice is recommended in Windows Vista. The "local" data files will be found in a directory accessible and modifiable by the application (without specific rights).

Managing the passwords (analysis or data file)

No password is requested when running the test of a report linked to a password-protected data file.

The necessary passwords must be specified by programming in the "Opening" process of the report:

  • If the report is linked to one or more password-protected data files, this password must be specified in H密码.
  • A WLanguage error occurs when running the report test if the passwords are not specified in the "Opening" process of the report.