Home > APEX_UTIL > DOWNLOAD_PRINT
Previous |
Next |
This procedure initiates the download of a print document using XML based report data (as a CLOB) and RTF or XSL-FO based report layout.
Syntax
APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT ( p_file_name IN VARCHAR, p_content_disposition IN VARCHAR, p_report_data IN CLOB, p_report_layout IN CLOB, p_report_layout_type IN VARCHAR2 default 'xsl-fo', p_document_format IN VARCHAR2 default 'pdf', p_print_server IN VARCHAR2 default null);
Parameters
Table: DOWNLOAD_PRINT_DOCUMENT Parameters describes the parameters available in the DOWNLOAD_PRINT_DOCUMENT
procedure for Signature 4.
DOWNLOAD_PRINT_DOCUMENT Parameters
Parameter | Description |
---|---|
|
Defines the filename of the print document |
|
Specifies whether to download the print document or display inline ("attachment", "inline") |
|
XML based report data, must be encoded in UTF-8 |
|
Report layout in XSL-FO or RTF format |
|
Defines the report layout type, that is "xsl-fo" or "rtf" |
|
Defines the document format, that is "pdf", "rtf", "xls", "htm", or "xml" |
|
URL of the print server. If not specified, the print server will be derived from preferences. |
Example for Signature 4
The following example shows how to use the DOWNLOAD_PRINT_DOCUMENT using Signature 4 (XML based report data (as a CLOB) and RTF or XSL-FO based report layout). In this example both the report data (XML) and report layout (XSL-FO) are taken from values stored in page items.
BEGIN APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT ( p_file_name => 'mydocument', p_content_disposition => 'attachment', p_report_data => :P1_XML, p_report_layout => :P1_XSL, p_report_layout_type => 'xsl-fo', p_document_format => 'pdf'); END;