- When should I use iPreview?
- Print preview
- End of print
- Printer fonts
- Re-running the report
iPreview (Function) In french: iAperçu
Warning
From version 25, iDestination should be used instead. This function proposes printing via the report viewer (called print preview in previous versions), the mini-preview window, as well as all other print destinations.
Configures the preview window. You can print: - on the printer directly (syntax 1).
- in a preview window (syntax 2). The user can preview the print result on the screen, page by page. This window allows you to:
- scroll the pages (next page and previous page if they exist),
- start the print,
- modify the scale of preview,
- display the first page or the last page,
- find out the number of the current page, ...
Versions 24 and later in a mini-preview window (syntax 3). This mini-preview allows you to view the page or pages to be printed, to define the printer to use, the use or not of color, the number of copies, ... New in version 24 in a mini-preview window (syntax 3). This mini-preview allows you to view the page or pages to be printed, to define the printer to use, the use or not of color, the number of copies, ... in a mini-preview window (syntax 3). This mini-preview allows you to view the page or pages to be printed, to define the printer to use, the use or not of color, the number of copies, ...
| Note about compatibility | In the earlier versions, iPreview also allowed you to choose the print destination. These syntaxes have been kept for backward compatibility but iDestination must now be preferred for this use. |
Remark: A warning message is displayed by default if the current computer may not have sufficient resources to display all pages in the preview (from 1000 pages). To avoid displaying this message or to configure the number of pages before displaying this message, use iParameterPreview. Versions 24 and later New in version 24 Syntax
Printing on the printer directly Hide the details
iPreview([<Destination> [, <Name of the document>]])
<Destination>: Optional integer constant Print destination. | | iPrinter | Direct print on the printer
|
<Name of the document>: Optional character string (with quotes) Name that will be given to the print. This name will identify the printout in the list of documents processed by the printer. Versions 24 and later New in version 24Remarks When should I use iPreview? Re-running the report The report displayed in the print preview is automatically re-run in the following cases:- when changing printer from the print preview.
- when printing the report via one of the buttons found in the button bar (print in HTML, in PDF, ...).
The report displayed in the print preview is automatically re-run when the report is printed or exported from the print preview. The processes associated with the report are re-run. In this case, the data displayed in the report may be modified (to take into account the data modified by the other users for example). The variables used by the report should be initialized in the initialization code of the report (and not in the code of the button that starts the print preview). Remark: The WLanguage functions used in your report may return a different result when the report is re-run. For example, if WLanguage functions are used in a report based on the current window, the current window will correspond to the preview window when the report is re-run. Business / UI classification : Neutral code
This page is also available for…
|
|
|