Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\AEAPI\apex_util017.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>DOWNLOAD_PRINT_DOCUMENT Procedure Signature 3</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T17:32:15Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="DOWNLOAD_PRINT_DOCUMENT Procedure Signature 3" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E12510-01" /> <link rel="copyright" href="../dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="../dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface" title="Home" type="text/html" /> <link rel="up" href="apex_util.htm" title="APEX_UTIL" type="text/html" /> <link rel="up" href="apex_util017.htm" title="DOWNLOAD_PRINT" type="text/html" /> <link rel="prev" href="apex_util016.htm" title="Previous" type="text/html" /> <link rel="next" href="apex_util018.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface" title="Home">Home</a> > <a href="apex_util.htm" title="APEX_UTIL">APEX_UTIL</a> > DOWNLOAD_PRINT</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="apex_util016.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util018.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDGIFJD" name="CHDGIFJD"></a></p> <hr /> <div class="refsect1"> <h1><a name="AEAPI149" id="AEAPI149"></a>DOWNLOAD_PRINT_DOCUMENT <a id="sthref95" name="sthref95"></a>Procedure Signature 3</h1> <p>This procedure initiates the download of a print document using pre-defined report query and pre-defined report layout.</p> <a id="sthref96" name="sthref96"></a> <p class="subhead2">Syntax</p> <pre xml:space="preserve" class="oac_no_warn"> APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT ( p_file_name IN VARCHAR, p_content_disposition IN VARCHAR, p_application_id IN NUMBER, p_report_query_name IN VARCHAR2, p_report_layout_name IN VARCHAR2, p_report_layout_type IN VARCHAR2 default 'xsl-fo', p_document_format IN VARCHAR2 default 'pdf', p_print_server IN VARCHAR2 default null); </pre> <a id="sthref97" name="sthref97"></a> <p class="subhead2">Parameters</p> <p><a href="#CHDHIAGE">Table: DOWNLOAD_PRINT_DOCUMENT Parameters</a> describes the parameters available in the <code>DOWNLOAD_PRINT_DOCUMENT</code> procedure for Signature 3.</p> <div class="tblformal"><a id="sthref98" name="sthref98"></a><a id="CHDHIAGE" name="CHDHIAGE"></a> <p class="titleintable">DOWNLOAD_PRINT_DOCUMENT Parameters</p> <table class="Formal" title="DOWNLOAD_PRINT_DOCUMENT Parameters" summary="This table describes the parameters available in the DOWNLOAD_PRINT_DOCUMENT." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> <col width="31%" /> <col width="*" /> <thead> <tr align="left" valign="top"> <th align="left" valign="bottom" id="r1c1-t23">Parameter</th> <th align="left" valign="bottom" id="r1c2-t23">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t23" headers="r1c1-t23"> <p><code>p_file_name</code></p> </td> <td align="left" headers="r2c1-t23 r1c2-t23"> <p>Defines the filename of the print document</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t23" headers="r1c1-t23"> <p><code>p_content_disposition</code></p> </td> <td align="left" headers="r3c1-t23 r1c2-t23"> <p>Specifies whether to download the print document or display inline ("attachment", "inline")</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t23" headers="r1c1-t23"> <p><code>p_application_id</code></p> </td> <td align="left" headers="r4c1-t23 r1c2-t23"> <p>Defines the application ID of the report query</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t23" headers="r1c1-t23"> <p><code>p_report_query_name</code></p> </td> <td align="left" headers="r5c1-t23 r1c2-t23"> <p>Name of the report query (stored under application's Shared Components)</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t23" headers="r1c1-t23"> <p><code>p_report_layout_name</code></p> </td> <td align="left" headers="r6c1-t23 r1c2-t23"> <p>Name of the report layout (stored under application's Shared Components)</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r7c1-t23" headers="r1c1-t23"> <p><code>p_report_layout_type</code></p> </td> <td align="left" headers="r7c1-t23 r1c2-t23"> <p>Defines the report layout type, that is "xsl-fo" or "rtf"</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r8c1-t23" headers="r1c1-t23"> <p><code>p_document_format</code></p> </td> <td align="left" headers="r8c1-t23 r1c2-t23"> <p>Defines the document format, that is "pdf", "rtf", "xls", "htm", or "xml"</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r9c1-t23" headers="r1c1-t23"> <p><code>p_print_server</code></p> </td> <td align="left" headers="r9c1-t23 r1c2-t23"> <p>URL of the print server. If not specified, the print server will be derived from preferences.</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformal" --> <a id="sthref99" name="sthref99"></a> <p class="subhead2">Example for Signature 3</p> <p>The following example shows how to use the <code>DOWNLOAD_PRINT_DOCUMENT</code> using Signature 3 (Pre-defined report query and pre-defined report layout). In this example, the data for the report is taken from a Report Query called '<code>ReportQuery</code>' stored in the current application's Shared Components > Report Queries. The report layout is taken from a Report Layout called '<code>ReportLayout</code>' stored in the current application's Shared Components > Report Layouts. Note that if you wish to provision dynamic layouts, instead of specifying '<code>ReportLayout</code>' for the <code>p_report_layout_name</code> parameter, you could reference a page item that allowed the user to select one of multiple saved Report Layouts. This example also provides a way for the user to specify how they wish to receive the document (as an attachment or inline), through passing the value of <code>P1_CONTENT_DISP</code> to the <code>p_content_disposition</code> parameter. <code>P1_CONTENT_DISP</code> is a page item of type '<code>Select</code> <code>List</code>' with the following List of Values Definition:</p> <pre xml:space="preserve" class="oac_no_warn"> STATIC2:In Browser;inline,Save / Open in separate Window;attachment BEGIN APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT ( p_file_name => 'myreport123', p_content_disposition => :P1_CONTENT_DISP, p_application_id => :APP_ID, p_report_query_name => 'ReportQuery', p_report_layout_name => 'ReportLayout', p_report_layout_type => 'rtf', p_document_format => 'pdf'); END; </pre> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> <a href="../bldapp_rpt_print.htm">"Printing Report Regions"</a> in <a href="../preface.htm"><span class="italic">Oracle Application Express Application Builder User's Guide</span></a>.</td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="refsect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="../dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="apex_util016.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util018.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de