- When to use iDestination?
- Android: Printing in PDF
- Printing in PDF
- Printing in HTML
- Printing in XLS
- Printing in RTF
- Configuring the printer for printing in HTML, RTF and text format
- Printing in PRN format
- Printing in XML
- Print characteristics
- Printing on a fax
- Printing a fax in landscape mode
- Using a fax server installed on a computer other than the current computer
- End of print
iDestination (Function) In french: iDestination Configures and returns the print destination. You can print: - directly on the printer (syntax 1 and syntax 2).
On the application server (in deployment), the print can only be done on the printers connected to the server. This feature is mainly used for the Internet sites. For the Internet sites, the print should be done in the format of a file in generic PDF format (iGenericPDF constant). in a mini-preview window (syntax 1). - directly in a file in text, HTM, RTF, PDF, PRN or XML format (syntax 3).
To obtain the same results during the development and on the deployed site, it is recommended to perform generic prints (with the iGenericPDF constant, for example).
![Universal Windows 10 App Universal Windows 10 App](https://doc.windev.com/ext/images/us/UNIVERSALAPP.png?1080764836) ![Android Android](https://doc.windev.com/ext/images/us/ANDROID.png?385929803) ![iPhone/iPad iPhone/iPad](https://doc.windev.com/ext/images/us/IPHONE.png?1493160723) ![IOS Widget IOS Widget](https://doc.windev.com/ext/images/us/WIDGETIOS.png?1313293721) In this version, the print can be performed in a PDF file only. - directly a duplicate (syntax 4).
- directly on a fax (syntax 5 and syntax 6 sending a report to a fax number, for example). For more details, see Sending faxes.
in the report viewer (syntax 7). The user can preview the print result on the screen, page by page. In this viewer, you can:- scroll the pages (next page and previous page if they exist),
- start the print job,
- modify the scale of preview,
- display the first page or the last page,
- find out the number of the current page, ...
Syntax
Printing in a file (HTM, PCL, PDF, PRN, RTF, XLS, XML, ...) Hide the details
iDestination([<Type of destination file> [, <Name of the file to create>]])
<Type of destination file>: Optional integer constant Used to configure the type of file to create: | | iFile | Print to a text file. The file will be named <Report name>.TXT (where <Report name> corresponds to the name of report defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.TXT. Caution: the printer settings are very important. See remarks. | iGenericFile | Print to a text file. The file will be named <Report name>.TXT (where <Report name> corresponds to the name of report defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.TXT. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iGenericHTML | Print to an HTML file using a style sheet. The file will be named <Report name>.HTM (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. This print mode must be used to manage the layers in the HTML pages. If <Name of file to create> is specified, the file name will be <Name of file to create>.HTM. No preview will be displayed. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iGenericHTMLWithoutCSS | Print to an HTML file without using a style sheet. The file will be named <Report name>.HTM (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. This print mode does not support layers in the HTML pages. If <Name of file to create> is specified, the file name will be <Name of file to create>.HTM. No preview will be displayed. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iGenericPDF | Print to a PDF file. The file will be named <Report name>.PDF (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.PDF. Caution: The maximum format is the A4 format. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iGenericRTF | Print to an RTF file. The file will be named <Report name>.RTF (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.RTF. No preview will be displayed. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iGenericXLS | Print to an XLS file. The file will be named <Report name>.XLS (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.XLS. No preview will be displayed. This print mode does not use the current printer driver so that an identical result is guaranteed from a computer to another one. | iGenericXML | Print to an XML file. The file will be named <Report name>.XML (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.XML. No preview will be displayed. This print mode does not use the current print driver so that an identical result is guaranteed from one computer to another. | iHTML | Print to an HTML file using a style sheet. The file will be named <Report name>.HTM (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. This print mode must be used to support the layers in the HTML pages. If <Name of file to create> is specified, the file name will be <Name of file to create>.HTM. No preview will be displayed. Caution: the printer settings are very important. See remarks. | iHTMLWithoutCSS | Print to an HTML file without using a style sheet. The file will be named <Report name>.HTM (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. This print mode does not support layers in the HTML pages. If <Name of file to create> is specified, the file name will be <Name of file to create>.HTM. No preview will be displayed. Caution: the printer settings are very important. See remarks. | iPCL | Print to a PCL file (<Report name>.PCL file created in the application directory). If <Name of file to create> is specified, the file name will be <Name of file to create>.PCL. | iPDF | Print to a PDF file. The file will be named <Report name>.PDF (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.PDF.
Warning
From version 27, this constant is available for backward compatibility. It is recommended to use the iGenericPDF constant, which improves the generation of PDF files.
| iPDFEmail | Print to a PDF file and open the messaging software on the current computer. This PDF file is directly attached to a new email created by using the MAPI client installed by a messaging software of the current computer. The MAPI client and the application must be installed in the same compilation mode (32/64-bit). The file will be named <Report name>.PDF (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.PDF. Remark: You can configure the elements of the new email with iParameterExport. | iPrinterFile | Print to a PRN file (<Name of file to create>). <Name of file to create> must contain the full name of PRN file. Caution: the printer settings are very important. See remarks. | iRTF | Print to an RTF file. The file will be named <Report name>.RTF (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.RTF. No preview will be displayed. Caution: the printer settings are very important. See the remarks. | iXLS | Print to an XLS file. The file will be named <Report name>.XLS (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.XLS. No preview will be displayed. | iXML | Print to an XML file. The file will be named <Report name>.XML (where <Report name> corresponds to the report name defined in the report editor). This file is created in the application directory. If <Name of file to create> is specified, the file name will be <Name of file to create>.XML. No preview will be displayed. |
<Name of the file to create>: Optional character string Name of generated file. If this parameter is not specified, the name of generated file corresponds to "Report Name". When printing in PRN format (with the iPrinterFile constant), the full name of file to create must be specified. Remarks When to use iDestination? Remark: iDestination can be called before printing a report (with iPrintReport) to choose the print destination. Business / UI classification: Neutral code
This page is also available for…
|
|
|