- When should iDestination be used?
- Printing in PDF format
- 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
- Printing via Bluetooth
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). - 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).
Versions 15 and laterdirectly a duplicate ( syntax 4). New in version 15directly a duplicate ( syntax 4). directly a duplicate (syntax 4).- directly on a fax (syntax 5 and syntax 6 sending a report to a fax number, for example). See Sending faxes for more details.
Versions 23 and later New in version 23 Syntax
Printing in a file (HTM, PCL, PDF, PRN, RTF, XLS, XML, ...) Hide the details
iDestination([<Type of destination file> [, <Name of file to create>]])
<Type of destination file>: Optional integer constant Used to configure the type of file to create: | | Versions 23 and lateriEmailPDF New in version 23iEmailPDF iEmailPDF | Direct print in 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 bits). 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 email with iParameterExport. | iFile | Direct print in 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 | Direct print in 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. | iPrinterFile | Direct print in a PRN file (<Name of file to create> file). <Name of file to create> must contain the full name of PRN file. Caution: the printer settings are very important. See remarks. | iHTML | Direct print in an HTML file while 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. | iGenericHTML | Direct print in an HTML file while 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. | iHTMLWithoutCSS | Direct print in 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. | iGenericHTMLWithoutCSS | Direct print in 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. | iPCL | Direct print in 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 | Direct print in 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. | iGenericPDF | Direct print in 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. | iRTF | Direct print in a 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 remarks. | iGenericRTF | Direct print in a 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. | iXLS | Direct print in 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. | iGenericXLS | Direct print in 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. | iXML | Direct print in 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. | iGenericXML | Direct print in 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. |
<Name of 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 should iDestination be used? 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…
|
|
|