APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT

My system is Apex 4.0.1+oc4j+Apex Listener+BI publisher. I need generate user-defined report layout with custom padding-left,*padding-top* values for each printing element (it is like Edit Print Attributes page in the application builder, but more complex), so the standart Report Queries and Report Layouts is not an option. DOWNLOAD_PRINT_DOCUMENT Procedure Signature 3 working fine with the pre-defined report query and pre-defined report layout. But I get 0-Byte pdf-file when trying to print document using custom XML based report data (as a CLOB) and XSL-FO based report layout (as a CLOB). Can anyone provide working example? Here is mine:
declare
f_layout clob;
f_data clob;
begin
f_data:='
<?xml version="1.0" encoding="UTF-8"?>
<DOCUMENT>
<DATE>05/17/2011</DATE>
<USER_NAME>NIN</USER_NAME>
<APP_ID>103</APP_ID>
<APP_NAME>Oracle APEX AppBuilder</APP_NAME>
<TITLE>TEST</TITLE>
<P32_VAL2></P32_VAL2>
<REGION ID="0">
<ROWSET>
<ROW>
<LANG>RUS</LANG>
</ROW>
<ROW>
<LANG>ENG</LANG>
</ROW>
</ROWSET>
</REGION>
</DOCUMENT>
f_layout:='
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DOCUMENT">
<xs:complexType>
<xs:sequence>
<xs:element ref="DATE"/>
<xs:element ref="USER_NAME"/>
<xs:element ref="APP_ID"/>
<xs:element ref="APP_NAME"/>
<xs:element ref="TITLE"/>
<xs:element ref="P32_VAL2"/>
<xs:element ref="REGION"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DATE">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="USER_NAME">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="APP_ID">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="APP_NAME">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="TITLE">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="P32_VAL2">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="REGION">
<xs:complexType>
<xs:sequence>
<xs:element ref="ROWSET"/>
</xs:sequence>
<xs:attribute name="ID" use="required">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ROWSET">
<xs:complexType>
<xs:sequence>
<xs:element ref="ROW"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ROW">
<xs:complexType>
<xs:sequence>
<xs:element name="LANG">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (
p_file_name => 'mydocument',
p_content_disposition => 'attachment',
p_report_data => f_data,
p_report_layout => f_layout,
p_report_layout_type => 'xsl-fo',
p_document_format => 'pdf');
end;

Hello,
If you use a branch you don't see the download as the branch is bringing you to another/the same page.
You probably want a before header process and make that conditional with a request. On your button you define the same request for ex PRINT. In your process, you set a condition Request = Value and type in PRINT.
That should do it for you.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/
REWARDS: Please remember to mark helpful or correct posts on the forum

Similar Messages

  • Handling Special characters in call to apex_util.download_print_document

    I am developing some custom reports that I need as PDFs. My client does not have BI Publisher so I am doing some custom xsl to generate the reports. I test as I develop by using a simple web page that POSTs to the apex_fop.jsp. Then I also test by saving the XML and XSL to the database and then query them and using apex_util.download_print_document, passing the XML and XSL as a blob and clob respectively.
    The issue I have is an ampersand. The following line
    <td>this &amp; that</td>works great when sent via the web page post to apex_fop.jsp. However when the exact same file is saved to the database and run through apex_util.download_print_document and opened with Adobe Reader, it says the file has been damaged and the oc4j error log for the fop application says
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF
    What's the difference between the two calling methods, and how do I get ampersands in the data using apex_util.download_print_document.
    Thanks.

    Larry,
    When you submit your request to apex_fop.jsp through a simple web page, and include escaped characters such as "&amp;", then your web browser takes care of encoding the & in your string. In APEX, you have a number of different ways to generate your PDF documents. You can use report queries, classic reports, interactive reports, or call the print API directly. When using any of the built-in reports (classic, interactive, report queries), the APEX engine generates the XML document holding your data for you. The APEX engine also takes care of escaping your data, so when you have a value like "this & that" in any of your queries columns, the engine escapes this to "this &amp; that". The engine additionally encodes characters such as &, which gets encoded into %26. And after that, processing is handed of to an interface between APEX and the print rendering engine. This interface simply takes the incoming XML data and stylesheet / template and makes an HTTP request to the rendering engine (e.g. BI Publisher, apex_fop.jsp, etc). It does not do any encoding, since that had been done in a previous step. The APEX print API is calling this interface directly, which means, that the incoming XML data already needs to be encoded prior to calling the APE. So if you change your string "this &amp; that" to "this %26amp; that", it should work as expected. We will have to look into whether we need to enhance the print API to allow for encoding the XML data supplied by the developer.
    Hope this helps,
    Regards,
    Marc

  • Creating PDF with XML and APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT

    I am trying to generate a PDF report with an existing BLOB stored in a table being applied to a report template. Here is my procedure.
    declare
    doc blob;
    begin
    select img into doc from table where id = :P1_SEL_ID;
    APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (
    p_file_name => 'Document',
    p_content_disposition => 'attachment',
    p_report_data => doc,
    p_report_layout => 'TEMPLATE1',
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf'
    end;
    When I run the procedure adobe acrobat opens but gives me an error message saying "The file cannot be opened because it has no pages".
    I am storing the blob through APEX_UTIL.GET_PRINT_DOCUMENT and a report query with the document format 'XML' here.
    declare
    idoc blob;
    begin
    doc := APEX_UTIL.GET_PRINT_DOCUMENT (
    p_application_id => 103,
    p_report_query_name => 'SAVE_XML',
    p_document_format => 'xml');
    update table set
    img = doc
    where id = :P1_SEL_ID;
    end;
    I am pretty sure that the stored files have data in them as I tried downloading and opening them after stored. Any ideas as to why this is? Is it the way I am storing/calling the blob file?
    Edited by: BLum on Feb 1, 2010 4:13 PM

    Nope sorry. I have no idea really of what could be the problem. I cannot even find a valid example of how to use that process in that way. I posted here as a last resort. As sort of a patch I just read the xml file and inserted the data into a temp table then called a report query on the temp table.

  • Bug in APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT for special characters?

    Hi,
    I am using APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT to download reports from BI-Publisher. But with special characters, and only if the filename is to long, the filename is in Firefox 10.0.2 not correct. In IE9 its running fine. I am not sure if its only a browser-problem or a problem with APEX.
    Here is the code:
    declare
        v_filename varchar2(1000);
    begin
        v_filename := 'Umlaut ü 123456789012345678901234567890123';
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                           p_content_disposition => 'attachment',
                                           p_application_id      => :APP_ID,
                                           p_report_query_name   => 'Checkliste',
                                           p_report_layout_name  => 'Checkliste',
                                           p_report_layout_type  => 'rtf',
                                           p_document_format     => 'pdf');
    end;With
    Umlaut ü 123456789012345678901234567890123its working and I get a file named "Umlaut ü 123456789012345678901234567890123.pdf".
    But with
    Umlaut ü 1234567890123456789012345678901234(one character longer) its not working and I get a file named "=_utf-8_B_VW1sYXV0IMO8IDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQucGRm".
    If I change the ü to ue I have no problems, even with much longer filenames.
    Very strange, isnt it?
    Any ideas for this?
    Kind Regadrs,
    Mark

    Hi,
    it does not work all fine with the IE. The following is not working both browser (firefox and IE):
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => 'Objektpruefung 02.08.2010 1000.pdf',
                                           p_content_disposition => 'attachment',
                                           p_application_id      => :APP_ID,
                                           p_report_query_name   => 'AnlagenCheckliste',
                                           p_report_layout_name  => 'AnlagenCheckliste',
                                           p_report_layout_type  => 'rtf',
                                           p_document_format     => 'pdf');The filename is then "Objektpruefung 02..pdf".
    Can anybody help me?
    Regards,
    Mark

  • Apex_util.download_print_document with clob file

    Has anybody had success using apex_util.download_print_document with a clob data file (instead of Report Query)? I'm trying this with an XML dataset and rtf. document that works if I try in Word BI -Plugin. If I try code below from APEX page I get an error saying there is something wrong with the document.
    apex_util.download_print_document(
    p_file_name => 'test',
    p_content_disposition => 'attachment',
    p_report_data => test_clob('',''),
    p_report_layout => 'ID_LST',
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf',
    p_print_server => null);
    CREATE OR REPLACE FUNCTION test_clob (p_username in varchar2,
    p_password in varchar2) return CLOB IS
    v_clob CLOB;
    BEGIN
    v_clob := dbms_xslprocessor.read2clob('INTERFACES','id_lst.xml');
    return(v_clob);
    END test_clob;

    FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
    Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
    Jasperreports: [http://blog.dunull.org/?page_id=70]
    Thank you,
    Tony Miller
    Webster, TX

  • Apex_util.download_print_document with Oracle XE?

    Hi!
    Can anyone tell me whether it is possible to use apex_util.download_print_document with Oracle XE?
    And can I do so without BI Publisher?
    If not, please point me to some solution that allows me to print PDF from my apps.
    Thanks!
    Remco

    FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
    Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
    Jasperreports: [http://blog.dunull.org/?page_id=70]
    Thank you,
    Tony Miller
    Webster, TX

  • Using download_print_document with dynamic procedure

    I am using the version of download_print_document that calls a function (returning clob) for my reports (see below). I need to dynamicaly change the procedure being called in p_report_data line based on what report they run. Is it possible to store that in a DB column and pass that to the API or possibly use dynamic SQL etc?
    apex_util.download_print_document(
    p_file_name => l_form,
    p_content_disposition => 'attachment',
    p_report_data => sis_express_nj02.transcript (:P1,:P2,:P3),
    p_report_layout => l_layout,
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf',
    p_print_server => null);*/

    Hi,
    Try something like:
    FUNCTION transcript (l_user in varchar2,
    l_owner in varchar2,
    l_report_order1 in varchar2,
    l_report_order2 in varchar2,
    l_report_order3 in varchar2,
    l_report_order4 in varchar2,
    l_start_yy in varchar2,
    l_resides_only in varchar2) return CLOB IS
    declare v_clob CLOB;
    l_p_report_data varchar2(30000) := 'sis_express_va23b.transcrip(
      v(''P507_APP_USER''),
    v(''P507_OWNER''),
    v(''P507_REPORT_ORDER''),
    v(''P507_REPORT_ORDER2''),
    v(''P507_REPORT_ORDER3''),
    v(''P507_REPORT_ORDER4''),
    v(''P507_YEAR''),
    v(''P507_RESIDES_ONLY'')
    begin
    execute immediate 'begin '|| ':1 := ' || l_p_report_data ||'; end;' using out v_clob;
    apex_util.download_print_document(
    p_file_name => l_form,
    p_content_disposition => 'attachment',
    p_report_data => v_clob,
    p_report_layout => l_layout,
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf',
    p_print_server => null);
    end;The previous suggestion should work too but I think you don't you don't need *'* around l_p_report_data
    and you need OUT before v_clob parameter
    execute immediate l_p_report_data
    using OUT v_clob,l_user,lowner,l_report_order1,l_report_order2, ...Regards,
    Lev
    Edited by: le on Jan 12, 2011 1:09 PM
    Edited by: le on Jan 12, 2011 1:14 PM
    Edited by: le on Jan 12, 2011 1:17 PM

  • Download_Print_Document from page

    I am trying to call a Report Query with a Report Layout (both saved under shared components) from an apex page in my browser window. I added a page process with the call to download_print_document. When I try it, the report doesn't come up and the page just refreshes. Am i missing something?
    begin
    apex_util.download_print_document(
    p_file_name => :P507_FORMS,
    p_content_disposition => 'inline',
    p_application_id => :APP_ID,
    p_report_query_name => 'ID_LST',
    p_report_layout_name => 'ID_LST',
    p_report_layout_type => 'rtf',
    p_document_format => ':P507_OUTPUT_FORMAT');
    end;

    Bob,
    Do you have any branches on that page? If so, make sure they don't get executed when you want to download your print document.
    Marc

  • How to generate one report in multiple formats with FOP or BIP?

    Hi all,
    Is it possible to generate multiple formats of one report in a single "call" using Apache FOP or BI Publisher? (something similar to reports bursting).
    Right now I can only select one format at a time.
    Thank you,
    Ana-Maria

    Hi Ana-Maria,
    When you enable printing on a report region or add a button to download a report query to your application, then you get a single document download. How would you see this working with "multiple formats"? Given that APEX is a development environment, you can pretty much implement anything you like. The built-in printing capabilities in APEX come with an API that allow for customization of the default functionality, e.g. you can use apex_util.download_print_document to dynamically assign report layouts at rumtime or to use you own XML data sources or XSL-FO style sheets. More relevant to you question though, there's also apex_util.get_print_document. What that allows you to do is to generate report documents inside the database and e.g. store them in database tables or email them out to a list of recipients. You can call this API as often as you like to, requesting any combination of available report formats.
    The API function is documented here:
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CHDDECIA
    Regards,
    Marc

  • File name field not generating dynamic file name for report printing

    Hello Folks,
    I have a report region on a page and have enabled report printing. I would like to have the file name generated dynamically. So, I add the substitution string, say "&P1_CUSTOMER_NAME." (no quotes). The output file I get is literally named "&P1_CUSTOMER_NAME..pdf" (no quotes).
    I have seen several posts suggesting the file name field should accept this syntax but, I cannot get it to work.
    We are running Application Express 3.2.0.00.27 and BI Publisher.
    Any suggestions?
    Thanks for your help.
    -Markus B.

    I was finally able to make it work using a page process and the APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT with a submit button.
    -Markus B.

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • How to export the Apex web page to PDF with click of a button?

    How to export the Apex web page to PDF with click of a button?
    Am looking at exporting the Form view on APEX to be exported to PDF.

    In order to get a PDF, you need to generate a Report....in PDF format.
    If you are using the APEX Listener, you can initiate the download of the PDF by calling APEX_UTILS.download_print_document()  (I normally place this in a Process)
    BUT -- You have to create the Report (under Shared Components) and a Template (also under Shared Components).
    The white paper in my first post gives you the HOWTO "[Create] Custom PDF Reports with Oracle Application Express and the APEX Listener".
    Start by creating a Report (in Shared Components, bottom right) that uses a simple SQL statement like:
    Select * from emp where empno = :P15_EMPNO
    You may need to hard code the parameter before you hit "Download XML" button.
    The XML that you get from clicking "Download XML" satisfies the "Step 1 - Create an XML Data Source" found on Page 11 of the document.
    The rest of the instructions is in that whitepaper.
    MK

  • APEX-PDF-Reports: Add ID and some more Data to the PDF-Filename

    Hi,
    I have create in APEX a Report Layout and a Report Query to export some data to an PDF-File (I am using BI Publisher).
    This works fine but now I need to add the ID and some other informations to the file-name.
    Because if the user create some PDF-Files he should be able to see, what file is for which data...
    How I can do this?
    Regards,
    Mark

    Hi Marc,
    thank you for your answer but it does not work for me.
    I have create the page process and if I click the button I have for few seconds the hour-glas. I think the BI Publisher is generating the file but I dont have a download-message and also the file is not saves automatically.
    This is my page process:
    declare
        v_filename varchar2(1000);
    begin
        v_filename := 'Checkliste_' || :P70_TECHNIK || '.pdf';
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                           p_content_disposition => 'attachment',
                                           p_application_id      => 119,
                                           p_report_query_name   => 'Checkliste',
                                           p_report_layout_name  => 'Checkliste',
                                           p_report_layout_type  => 'xsl-fo',
                                           p_document_format     => 'pdf');
    end;I have also tried it with p_report_layout_type => 'rtf' because the layout is a rtf-file, but also no luck.
    Have you a idea why I cant download the file?
    Regards,
    Mark

  • Special Characters not showing using Report Query

    I run my BI pub reports from APEX page using apex_util.download_print_document (see below).
    It looks like it is stripping out the '+' from the report when displaying. It shows correctly inthe XML file.
    I even tried encoding with SELECT max(replace(I1.alpha_grade,'+','%2B')) . This prints the '%2B' instead of the '+'.
    Any ideas?
    apex_util.download_print_document(
    p_file_name => l_form_description,
    p_content_disposition => 'attachment',
    p_application_id => v('APP_ID'),
    p_report_query_name => nvl(l_report_query_name,l_form),
    p_report_layout => l_layout,
    p_report_layout_type => 'rtf',
    p_document_format => v('P507_OUTPUT_FORMAT'));

    Glad it worked out for you Bob; here is the site I used for HTML to Character conversion chart.
    [url http://www.ascii.cl/htmlcodes.htm]HTML Codes - Characters and symbols
    Jeff

Maybe you are looking for

  • Thunderbolt to Firewire Adapter & New Network Interface Message

    I am using the new Thunderbolt to Firewire Adapter. Why is it that every time I use it, I get the following message: "A new network interface has been detected. The Thunderbolt FireWire Slot 2 network interface has not been set up. To set up this int

  • I am getting error message when trying to a document in Adobe InDesign

    Hi All I am getting the following error message when trying to open a document in Adobe InDesign Document contains an invalid frame. Story text begins - Delete frame and associated story? Options are yes no. clicking no a couple of times and the docu

  • Downloading Purchased TV Shows & Video

    I just purchased a TV Show series from ITunes and it is showing that it was paid for but is not syncing to my 80g 5th gen. Ipod. How do I get the show to sync into my IPOD and how long does it take to download? Thanks for your help.

  • Applications wont start

    its a G3 most of the applications will no longer start, i've tried starting up from a different source from within the OS and from holding down the alt-shift-option-delete at startup but nothing will work. I'd like to scan the drive since i thing it

  • Phantom Emails In Sent Box

    My phone Cox mail account shows 12 emails in the sent folder, but when I open the folder it's empty. How do I get rid of the number 12 in the sent folder ? richie