Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\AEAPI\apex_util018.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 4</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 4" /> <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_util018.htm" title="DOWNLOAD_PRINT" type="text/html" /> <link rel="prev" href="apex_util017.htm" title="Previous" type="text/html" /> <link rel="next" href="apex_util019.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_util017.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util019.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDFIGIJ" name="CHDFIGIJ"></a></p> <hr /> <div class="refsect1"> <h1><a name="AEAPI150" id="AEAPI150"></a>DOWNLOAD_PRINT_DOCUMENT <a id="sthref100" name="sthref100"></a>Procedure Signature 4</h1> <p>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.</p> <a id="sthref101" name="sthref101"></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_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); </pre> <a id="sthref102" name="sthref102"></a> <p class="subhead2">Parameters</p> <p><a href="apex_util017.htm#CHDHIAGE">Table: DOWNLOAD_PRINT_DOCUMENT Parameters</a> describes the parameters available in the <code>DOWNLOAD_PRINT_DOCUMENT</code> procedure for Signature 4.</p> <div class="tblformal"><a id="sthref103" name="sthref103"></a><a id="sthref104" name="sthref104"></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-t25">Parameter</th> <th align="left" valign="bottom" id="r1c2-t25">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t25" headers="r1c1-t25"> <p><code>p_file_name</code></p> </td> <td align="left" headers="r2c1-t25 r1c2-t25"> <p>Defines the filename of the print document</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t25" headers="r1c1-t25"> <p><code>p_content_disposition</code></p> </td> <td align="left" headers="r3c1-t25 r1c2-t25"> <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-t25" headers="r1c1-t25"> <p><code>p_report_data</code></p> </td> <td align="left" headers="r4c1-t25 r1c2-t25"> <p>XML based report data, must be encoded in UTF-8</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t25" headers="r1c1-t25"> <p><code>p_report_layout</code></p> </td> <td align="left" headers="r5c1-t25 r1c2-t25"> <p>Report layout in XSL-FO or RTF format</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t25" headers="r1c1-t25"> <p><code>p_report_layout_type</code></p> </td> <td align="left" headers="r6c1-t25 r1c2-t25"> <p>Defines the report layout type, that is "xsl-fo" or "rtf"</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r7c1-t25" headers="r1c1-t25"> <p><code>p_document_format</code></p> </td> <td align="left" headers="r7c1-t25 r1c2-t25"> <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="r8c1-t25" headers="r1c1-t25"> <p><code>p_print_server</code></p> </td> <td align="left" headers="r8c1-t25 r1c2-t25"> <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="sthref105" name="sthref105"></a> <p class="subhead2">Example for Signature 4</p> <p>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.</p> <pre xml:space="preserve" class="oac_no_warn"> 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; </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_util017.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util019.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