Print List Processing Report to PDF

hi all,
i've read many forums about convert info into PDF. but i'm very new to understand those forums.
In case I want to print list processing report as PDF (not hard copy thru printer). First, user types the data on the screen then click on 'Execute' button, then the system shows the result on screen. After that user asks system for print the screen on menu bar by List=>Print.
So please advise me how to get the spool id, then export as pdf. As my opinion, i may use CONVERT_ABAPSPOOLJOB_2_PDF and GUI_DOWNLOAD. But where is the place I should put the methods on?
Thanks in advance.
Peerasit

Hi,
Go through The simple Anallise this program.
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant.  Then called
*-- program will be transparent to users
*-- TABLES
tables:
  tsp01.
*-- STRUCTURES
data:
  mstr_print_parms like pri_params,
  mc_valid(1)      type c,
  mi_bytecount     type i,
  mi_length        type i,
  mi_rqident       like tsp01-rqident.
*-- INTERNAL TABLES
data:
  mtab_pdf    like tline occurs 0 with header line,
  mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
  p_repid like sy-repid, " Report to execute
  p_linsz like sy-linsz default 132, " Line size
  p_paart like sy-paart default 'X_65_132'.  " Paper Format
start-of-selection.
concatenate 'c:\'
            p_repid
            '.pdf'
  into mc_filename.
*-- Setup the Print Parmaters
  call function 'GET_PRINT_PARAMETERS'
   exporting
     authority= space
     copies   = '1'
     cover_page                   = space
     data_set = space
     department                   = space
     destination                  = space
     expiration                   = '1'
     immediately                  = space
     in_archive_parameters        = space
     in_parameters                = space
     layout   = space
     mode     = space
     new_list_id                  = 'X'
     no_dialog= 'X'
     user     = sy-uname
   importing
     out_parameters               = mstr_print_parms
     valid    = mc_valid
   exceptions
     archive_info_not_found       = 1
     invalid_print_params         = 2
     invalid_archive_params       = 3
     others   = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
  if mstr_print_parms-pdest = space.
    mstr_print_parms-pdest = 'LOCL'.
  endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
  mstr_print_parms-linsz = p_linsz.
  mstr_print_parms-paart = p_paart.
  submit (p_repid) to sap-spool without spool dynpro
                   spool parameters mstr_print_parms
                   via selection-screen
                   and return.
*-- Find out what the spool number is that was just created
  perform get_spool_number using sy-repid
             sy-uname
    changing mi_rqident.
*-- Convert Spool to PDF
  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
      src_spoolid= mi_rqident
      no_dialog  = space
      dst_device = mstr_print_parms-pdest
    importing
      pdf_bytecount                  = mi_bytecount
    tables
      pdf        = mtab_pdf
    exceptions
      err_no_abap_spooljob           = 1
      err_no_spooljob                = 2
      err_no_permission              = 3
      err_conv_not_possible          = 4
      err_bad_destdevice             = 5
      user_cancelled                 = 6
      err_spoolerror                 = 7
      err_temseerror                 = 8
      err_btcjob_open_failed         = 9
      err_btcjob_submit_failed       = 10
      err_btcjob_close_failed        = 11
      others     = 12.
call function 'DOWNLOAD'
     exporting
          bin_filesize            = mi_bytecount
          filename                = mc_filename
          filetype                = 'BIN'
     importing
          act_filename            = mc_filename
     tables
          data_tab                = mtab_pdf.
      FORM get_spool_number *
      Get the most recent spool created by user/report              *
-->  F_REPID               *
-->  F_UNAME               *
-->  F_RQIDENT             *
form get_spool_number using f_repid
     f_uname
                changing f_rqident.
  data:
    lc_rq2name like tsp01-rq2name.
  concatenate f_repid+0(8)
              f_uname+0(3)
    into lc_rq2name separated by '_'.
  select * from tsp01 where  rq2name = lc_rq2name
  order by rqcretime descending.
    f_rqident = tsp01-rqident.
    exit.
  endselect.
  if sy-subrc ne 0.
    clear f_rqident.
  endif.
endform." get_spool_number
Regards
swamy

Similar Messages

  • Printing out a report in PDF format

    Hi,
    A colleague and myself have been converting an existing system for our customer from the traditional client/server architecture to a web-deployed system on 10g application server. I have been converting the reports from report 3.5 to reports 10g. The reports work fine but the problem we have is more to do with the printer than the reports itself.
    We have a requirement to print a barcode label (and some other text) to a DataMax printer. This printer seems to be quite fussy about the fonts that are used and essentially if you don't use the DataMax fonts the label comes out blank. I have managed however to produce reports as PDF and if I click the Printer button in the adobe control the report will print out as a bitmap image on the printer.
    Is there any way that I can produce the report as a PDF file and get it to print automatically ?

    Prohan,
    I have never been able to get PDF generation working from APEX. I have asked for some help on this forum, but go no responses. And I just won't spend the outrageous license fees for Oracle BI Publisher. But I have been successful in doing what need with some simple methods.
    1. If the email has some simple tables or formatted information from the database, use a PL/SQL procedure to generate an HTML formatted message and the utl_mail package to send the html formatted email. I use this for many customer and internal emails from both APEX and Oracle Forms applications.
    2 There is a stand-alone product PL/PDF (http://www.plpdf.com/) that allows you to generate PDF files directly from PL/SQL (again not APEX specific). I have demoed this product and it works pretty well, but I am not using it at this time because of the licensing that requires a fee for each database instance. It's not really that expensive, but it's more than I want to spend for the number of databases I have.
    3. If you have Acrobat Professional, you can export XML file from the database and create "mail merge" type PDF documents. But you can also do this with Word and a simple CSV or Excel output. Both of these are pretty easy from APEX. I have used both. I found the Work mail merge to be a little easier for end users to use, so this is my primary choice. But Acrobat Pro method also works well.
    If you are interested in any examples of these methods, let me know and I can send you something.
    Bill
    Bill

  • Recieved Error While trying to print the OBIEE report in PDF format

    Hi ,
    I recieved the following error while printing the OBIEE dashboard page in PDF format . Also I recieve the same error when i try to download the report in Powerpoint format .
    Assertion failure: rElement.countChildElements() <= vColumns.size() at line 457 of ./project/websubsystems/xslfopostprocessor.cpp
    Error Details
    Error Codes: OQ78YWIW
    I am not able to figure out reason behind this ..
    Please help !!!
    jyoti

    I am also recieving the same error message while trying to download my report in PDF format.Can anyone pls help to resolve this??
    Payel

  • Generating Print Preview of report in PDF

    Hi all,
    I need to generate a print preivew of a report output in PDF. When the report is executed, it displays the output. On the status bar, there is a button. When the user clicks on this button, instead of downloading the report in PDF, the report should be displayed in PDF format. Can anyone explain how this can be achieved?
    regards,
    Hamza

    Hi see this tutorial.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    It is about displaying smartform output as pdf in web dynpro.
    in the code given there is a method display pdf, try writing ur report code inside it and see if it gets displayed as pdf.
    Not sure if it would work but can give it a try.
    кu03B1ятu03B9к

  • Print MS Access report to PDF with digital signatures.

    I know it is possible to print a Microsoft Access report to a PDF file.  However, we need to be able to add digital signatures to the resulting PDF.  Is it possible to predefine the PDF signature fields in the Access database so that when the report is printed to PDF it is ready from employees to sign off on the PDF?

    This is doable with the ability to do a security.importfromfile which provides the ability to import a certificate.
    This is critical.
    Just create the PDF and then open it up in Access. Be sure to have a reference to the Acrobat Type library.

  • Print Report to PDF with columns vertical instead of horizontal

    I enabled report printing for a report region but the PDF lists the columns horizontally even though the columns are listed vertically on the report page. Is there a way to list the columns vertically on the PDF so that it matches the layout on the report page. Thanks for your help.

    Hi hhsu68
    Wondering how you are arranging columns listed vertically on the report page?
    You mean just selecting any vertical report template, or
    you mean just column headers are vertical and the data as normal (horizontal)?
    If its the second case could you please let me know how you did that?
    Off course I would also like to know if you have found a solution to your problem as well.
    Thank you
    Ligon

  • How to setup in-process report server 11g on linux for destype=printer

    Currently, I'm facing following error when send RDF report directly on printer with destype=printer using run_report_object built-in
    REP-50159: The report generated successfully but distribution to destinations failed.
    REP-50157: Destination ID TESTREP failed with error An error occurred while sending the file to printer \\hostname\printername. Exit with error code 1..
    When i check on report server cache PDF file is generated /wls/asinst_1/reports/cache/\\askit\PRN01F8gFTQkG5v.pdf but job not go to printer as mention in trace rwlpr.trc file output below.
    Note: rwlpr.trc file generated by following 268295.1
    ==============================================================
    XAUTHORITY=/tmp/.gdmT93JDW
    _=/usr/bin/env
    Parameters : -P "\\askit\PRN01F8" -#1 "/wls/asinst_1/reports/cache/\\askit\PRN01F8gFTQkG5v.pdf"
    + '[' '!' 4 -gt 0 ']'
    + '[' -P = -help ']'
    ++ uname -s
    + '[' Linux = HP-UX ']'
    + PRNCMDS='lpr lp'
    + for CMD in '$PRNCMDS'
    ++ which lpr
    ++ grep lpr
    + PRNCMDPATH=/usr/bin/lpr
    + '[' '!' -x /usr/bin/lpr ']'
    + '[' -x /usr/bin/lpr ']'
    ++ basename /usr/bin/lpr
    + '[' lpr = lpr ']'
    ++ uname -s
    + '[' Linux = Linux ']'
    ++ echo -P '"\\askit\PRN01F8"' -#1 '"/wls/asinst_1/reports/cache/\\askit\PRN01F8gFTQkG5v.pdf"'
    ++ tr -d '"'
    + /usr/bin/lpr -P '\\askit\PRN01F8' -#1 '/wls/asinst_1/reports/cache/\\askit\PRN01F8gFTQkG5v.pdf'
    /usr/bin/lpr: The printer or class was not found.
    + exit 1
    =============================================================
    I didn't do any configuration in Enterprise Manager for Printer Configuration. Is this the reason? Is any thing I missed out?
    Environment Setup:
    Server Side:
    Oracle Linux 5 (No printer is setup)
    Oracle Weblogic Server 10.3.6
    Oracle FMW Forms and Report 11.1.2
    Configure: In-Process Report Server
    Client Side:
    Window 7
    Printer: Default network printer set with client
    Best Regards,
    Fani

    Hi,
    the first thing you need to check is if you are able to print from the OS using the same lpr command that reports is using and using the printer queue being used when you submitted the report request.
    Try to print any file from command line using lpr and your print queue \\askit\PRN01F8. If this does not work then that needs to be fixed from the OS standpoint before running report to printer.
    Hope it helps
    Regards, RZ

  • How do i add acrobat to my printer list so i can create a pdf file. Mac 10.6.8?

    How do i add acrobat to my printer list so i can create a pdf file. Mac 10.6.8?

    Good day,
    Beginning w/ the release of Mac OS 10.6.8, the process to create PDF files with Acrobat changed.  The Adobe PDF Printer no longer exists.  To create a PDF using Acrobat, please refer to the instructions in this document: http://helpx.adobe.com/acrobat/kb/cant-print-pdfs-mac-os.html
    -David

  • Print Quote the report is in PDF but need to be new RTF template

    We have 11.5.10 apps, the Quote screen is an OAF screen.
    When clicking Print Quote the report is in PDF, They want to include a new RTF template for printing instead of PDF.
    The new RTF template is created. But what I do not know is how the quote screen will take the new template. I can use XMLP to upload the RTF template but that may not be sufficient to make it appear in the Quote screen.
    I am looking at the profile ASO:Default Layout Template. Am I headed the right way?

    Hi,
    Please refer to the following documents, it should be helpful.
    Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
    Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
    Note: 468982.1 - How To Customize The Asoprint.Xsl
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1
    Regards,
    Hussein

  • Convert a web report into pdf and print (in BW 3.5)

    Hello gurus,
    i have few web reports ( created using WAD). i am looking for a possibility to convert a web report (viewed in a browser by a user) into pdf and print them and this should be done by pressing a button.
    Is it possible in BW 3.5 version?.
    could anyone please help me?
    Any how to docs. would be really helpful.
    thanks and regards
    kumar

    Here it is
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZPD_ADHOC_PAGE"/>
             <param name="MENU_BACK" value=""/>
             <param name="MENU_BACK_TO_START" value=""/>
             <param name="SUPPRESS_WARNINGS" value="X"/>
             <param name="MENU_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS" value=""/>
             <param name="MENU_SELECT_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS_CHART" value=""/>
             <param name="MENU_FILTER_CHART" value=""/>
             <param name="MENU_FILTER_DRILL_DOWN" value=""/>
             <param name="MENU_DRILL_UP_GIS" value=""/>
             <param name="MENU_DRILL_DOWN" value=""/>
             <param name="MENU_EXCHANGE_OBJECTS" value=""/>
             <param name="MENU_REMOVE_DRILL_DOWN" value=""/>
             <param name="MENU_SWITCH_AXIS" value=""/>
             <param name="MENU_HIERARCHY_NODE_DRILL" value=""/>
             <param name="MENU_HIERARCHY_DRILL" value=""/>
             <param name="MENU_HIERARCHY_STATE" value=""/>
             <param name="MENU_SORT" value=""/>
             <param name="MENU_CALCULATE_RESULT" value=""/>
             <param name="MENU_CALCULATE_VALUE" value=""/>
             <param name="MENU_CUMULATE_VALUE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENTS" value=""/>
             <param name="MENU_DOCUMENT_CREATE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_PROP" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_SELEC" value=""/>
             <param name="MENU_RRI" value=""/>
             <param name="MENU_EXPORT_TO_CSV" value=""/>
             <param name="MENU_EXPORT_TO_XLS" value=""/>
             <param name="MENU_BOOKMARK" value=""/>
             <param name="MENU_CHARACTERISTIC_PROPERTIES" value=""/>
             <param name="MENU_VALUE_PROPERTIES" value=""/>
             <param name="MENU_QUERY_PROPERTIES" value=""/>
             <param name="MENU_VARIABLE_SCREEN" value=""/>
             <param name="MENU_CURRENCY_CONVERSION" value=""/>
             <param name="MENU_ENHANCED" value=""/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>SAP BW Reporting Print Page</TITLE>
    <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    <script type"text/javascript">
    <!--
    //   Global Variable Definition
    var dataTable = "";
    var pageRowCnt = 0;
    var prevPage = 0;
    var ColumnCnt = 0;
    var PrintDateTimeStamp = new Date();
    var rptWidth = 0;
    //DATE STAMP FUNCTION
    function datestamp(){
               var Today = new Date()
               document.write(Today);
    function getReportTitle() {
                    var myQueryString = window.location.search;
                    var startOfRptTitle = myQueryString.indexOf("QTITLE=");
                    if (startOfRptTitle != -1)
                         var endOfRptTitle = myQueryString.indexOf("&", startOfRptTitle + 7);
                         var myTitle = unescape(myQueryString.substring(startOfRptTitle + 7, endOfRptTitle));
                         var rpttitle = "";
                         for(i=0;i<myTitle.length;i++){
                             if (myTitle.substring(i,i+1) == "+"){
                                 rpttitle = rpttitle + ' ';
                             else
                                 rpttitle = rpttitle + (myTitle.substring(i,i+1));
                    else
                         var rpttitle =  "Unspecified Query Title";
                    return rpttitle;
    queryTitle=getReportTitle();
    function getHeading2() {
                    var myQueryString = window.location.search;
                    var startOfHdr2 = myQueryString.indexOf("HDR2=");
                    if (startOfHdr2 != -1)
                         var endOfHdr2 = myQueryString.indexOf("&", startOfHdr2 + 5);
                         var myHdr2 = unescape(myQueryString.substring(startOfHdr2 + 5, endOfHdr2));
                         var hdr2 = "";
                         for(i=0;i<myHdr2.length;i++){
                             if (myHdr2.substring(i,i+1) == "+"){
                                 hdr2 = hdr2 + ' ';
                             else
                                 hdr2 = hdr2 + (myHdr2.substring(i,i+1));
                    else
                         var hdr2 =  "#";
                    return hdr2;
    header2=getHeading2();
    function getHeading3() {
                    var myQueryString = window.location.search;
                    var startOfHdr3 = myQueryString.indexOf("HDR3=");
                    if (startOfHdr3 != -1)
                         var endOfHdr3 = myQueryString.indexOf("&", startOfHdr3 + 5);
                         var myHdr3 = unescape(myQueryString.substring(startOfHdr3 + 5, endOfHdr3));
                         var hdr3 = "";
                         for(i=0;i<myHdr3.length;i++){
                             if (myHdr3.substring(i,i+1) == "+"){
                                 hdr3 = hdr3 + ' ';
                             else
                                 hdr3 = hdr3 + (myHdr3.substring(i,i+1));
                    else
                         var hdr3 =  "#";
                    return hdr3;
    header3=getHeading3();
    function getAsOfDate() {
                    var myQueryString = window.location.search;
                    var startOfRelevance = myQueryString.indexOf("ASOFDATE=");
                    if (startOfRelevance != -1)
                         var endOfRelevance = myQueryString.indexOf("&", startOfRelevance + 9);
                         var myRelevance = unescape(myQueryString.substring(startOfRelevance + 9, endOfRelevance));
                         var asof = "";
                         for(i=0;i<myRelevance.length;i++){
                             if (myRelevance.substring(i,i+1) == "+"){
                                 asof = asof + ' ';
                             else
                                 asof = asof + (myRelevance.substring(i,i+1));
                    else
                         var asof =  "";
                    return asof;
    asofDateTime=getAsOfDate();
    function getPaperSize() {
                    var myQueryString = window.location.search;
                    var startOfPaperSize = myQueryString.indexOf("PSIZE=");
                    if (startOfPaperSize != -1)
                         var endOfPaperSize = myQueryString.indexOf("&", startOfPaperSize + 6);
                         var myPaperSize = unescape(myQueryString.substring(startOfPaperSize + 6, endOfPaperSize));
                         var psize = "";
                         for(i=0;i<myPaperSize.length;i++){
                                 psize = psize + (myPaperSize.substring(i,i+1));
                    else
                         var psize =  "0";    // default if none supplied  (normal 8x11)
                    return psize;
    varPaperSize=getPaperSize();
    var PaperSizeParamString='&PSIZE=' + escape(varPaperSize);
       switch(varPaperSize){
            case "0":    // Landscape - Letter
                           var WidthMax = 910;
                           var RowsPerPageMax = 38;
                           break;
            case "1":    // Landscape - Legal
                           var WidthMax = 1190;
                           var RowsPerPageMax = 38;
                           break;
            case "2":    // Portrait - Letter
                           var WidthMax = 660;
                           var RowsPerPageMax = 54;
                           break;
    function getTotalColumns() {
       var myHTML = dataTable.rows[1].innerHTML;
       var TotalTDs = 0;
       var nextTD = 0;
       for (i=0;i<myHTML.length;i++) {
           nextTD =  myHTML.indexOf("<TD", i);
           if (nextTD != -1) {
              i=nextTD;
              TotalTDs++;
           else break;
       return TotalTDs;
    function GetPageHeadings() {
       var headingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       var headingspancnt = 2;
       if (header2 != '#') headingspancnt = headingspancnt + 1;   // adjust for extra headings
       if (header3 != '#') headingspancnt = headingspancnt + 1;  
       if (currPage > 1) {
          headingHTM += '<TR style="page-break-before:always; display:none; visibility:hidden; "><TD Colspan="' + ColumnCnt + '"></td></tr>';
       else {
          headingHTM += '<TABLE  id="THEREPORT" name="MYREPORT" cellSpacing=0 cellPadding=0 width=' + WidthMax + ' border=0>';
       if (ColumnCnt == 1) {
          headingHTM += '<TR><TD vAlign=top align=left nowrap><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '<TD> </TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          headingHTM += '<TR><TD vAlign=top align=left nowrap Colspan="' + leftspancnt + '"><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" Colspan="' + rightspancnt  + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '</TR>';
       return headingHTM;
    function GetPageFooting() {
       var footingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       if (ColumnCnt == 1) {
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap Colspan="' + leftspancnt + '"><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right" Colspan="' + rightspancnt + '"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       return footingHTM;
    function GetReportFooting() {
       var footingHTM = "";
       footingHTM += '</TABLE>';
       return footingHTM;
    function formatToPrint() {
       var PrintHTM = "";
       PrintHTM += GetPageHeadings();
       if (ColumnCnt != 1) {
          for (var i=1;i<dataTable.rows.length;i++) {
               (currPage > prevPage)?prevPage=currPage:"";  //increment current page count
               if ((pageRowCnt + 1)>RowsPerPageMax){
                   PrintHTM += GetPageFooting();
                   pageRowCnt = 0;
                   currPage++;
               if (prevPage != currPage) {
                   PrintHTM += GetPageHeadings();
               else
                   PrintHTM += '<tr>' + dataTable.rows<i>.innerHTML + '</tr>';
                   pageRowCnt++;
       PrintHTM += GetPageFooting();       
       PrintHTM += GetReportFooting();
       return PrintHTM;
    function DisplayPrintNotice() {
    // Paper Size "0" is Letter with Landscape
    // Paper Size "1" is Legal with Landscape
    // Paper Size "2" is Letter with Portrait
    if (varPaperSize == "0") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Printer Orientation to Landscape n 2) select Print menu, then select the Print button.";}
    if (varPaperSize == "1") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Legal n 2) Adjust the Printer Orientation to Landscape n 3) select Print menu, then select the Print button.";}
    //if (varPaperSize == "2") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Letter n 2) Adjust the Paper Source (if necessary) n 3) Adjust the Orientation to Portrait (default) n 4) Select the Okay button nn Again select the File Menu, select Print, then select the Print button.";}
    alert(varMessage);
    //window.print()
    /*   SAP BW Reporting Stylesheet Revisions        */        
    function writeStyleRevisions() {
    function writeDynamicFontRevisions(dynafont) {
    //Writes the Dynamic Stylesheet
    -->
    </script>
    </HEAD>
    <BODY>
    <TABLE  id="tp1" cellSpacing=0 cellPadding=0 width=660 border=0 >
        <TR>
        <TD vAlign=top align=left nowrap>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="MYQUERY"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="WIDTH" value="660"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="SUPPRESS_REPETITION_TEXTS" value=""/>
             <param name="BLOCK_SIZE" value="3500"/>
             <param name="SHOW_PAGING_AREA_TOP" value="X"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             ITEM:            MYQUERY
    </object>
        </TD>
      </TR>
    </TABLE>
    <SCRIPT type="text/javascript">
    <!--
            var tbls = document.body.getElementsByTagName("TABLE");
            for (var i=0;i<tbls.length;i++) {
                  if (tbls<i>.name == "MYQUERY"){
                        var dataTable = tbls<i>;
                        break;
            document.title = queryTitle;
            rptWidth = dataTable.clientWidth;
            rptHeight = dataTable.clientHeight;
            originalRptWidth = rptWidth;
            originalRptHeight = rptHeight;
            originalRowHeight = Math.floor(rptHeight/(dataTable.rows.length+1));
            rptPageHeightMax = 580;                                                                                //660 less basic header and footer of 80
            if (header2 != '#') rptPageHeightMax = rptPageHeightMax - 20;   // adjust for extra headings
            if (header3 != '#') rptPageHeightMax = rptPageHeightMax - 20;  
            if (dataTable.rows.length == 1) {
                ColumnCnt = 1;                //No Applicable Data found message
            else {
                ColumnCnt = getTotalColumns();
            startingFont = 65;
            varFontSize = startingFont;
            if (rptWidth > WidthMax) {
                while ((rptWidth > WidthMax) && (varFontSize > 15))
                    writeDynamicFontRevisions(varFontSize);
                    rptWidth = dataTable.clientWidth;
                    rptHeight = dataTable.clientHeight;
                    varFontSize = varFontSize - 5;
                // calculate max rows per page
                rowHeight = Math.floor(rptHeight/(dataTable.rows.length+1)) + 1;        // add 1 for 2 row heading, add 1 for padding
                RowsPerPageMax = Math.floor(rptPageHeightMax/rowHeight) - 2;   // adjust for column headings
            if (dataTable.rows.length == 1) {
                varPageTotal = 1;                //No Applicable Data found message
            else {
                totalRows = dataTable.rows.length-1;                                       // total rows less headings
                varPageTotal = Math.floor(totalRows/RowsPerPageMax);       // compute total pages
                if (totalRows != (varPageTotal * RowsPerPageMax)) {
                    varPageTotal = varPageTotal + 1;                                        // if not a complete last page, add 1 for partial page
            currPage = 1;
            document.write(formatToPrint());
            document.all.tp1.style.display = "none";
            document.all.tp1.style.visibility = "hidden";
    //        DisplayPrintNotice();
    -->
    </SCRIPT>
    <STYLE>
    input.ie55   { display: none }
    </STYLE>
    <!-- special style sheet for printing -->
    <STYLE media=print>
    .noprint     { display: none }
    </STYLE>
    <script defer>
    function window.onload() {
        if (!factory.object) {
            return
        else {
    //     factory.printing.header = "SAP"
    //     factory.printing.footer = "SAP"
            if ( varPaperSize == "2" ) { factory.printing.portrait = true; }
            else { factory.printing.portrait = false; }
            factory.printing.Print(true);
            // enable control buttons
      /*  var templateSupported = factory.printing.IsTemplateSupported();
           var controls = idControls.all.tags("input");
           for ( i = 0; i < controls.length; i++ ) {
               controls<i>.disabled = false;
               if ( templateSupported && controls<i>.className == "ie55" )
                  controls<i>.style.display = "inline";
    </script>
    <P>
    <div id=idControls class="noprint" style="VISIBILITY: hidden">
    <input disabled type="button" value="Print this page"
    onclick="factory.printing.Print(true)">
    <input disabled type="button" value="Page Setup..."
    onclick="factory.printing.PageSetup()">
    <input class=ie55 disabled type="button" value="Print Preview..."
    onclick="factory.printing.Preview()">
    <input class=ie55 disabled type="button" value="Landscape"
    onclick="factory.printing.portrait=false">
    <input class=ie55 disabled type="button" value="Portrait"
    onclick="factory.printing.portrait=true">
    </div>
    </BODY>
    </HTML>

  • PDF and Print Control in Reports.

    Dear All,
    I want to set particular format for every report in PDF and Print control option like want to place client's logo in header and page number and date in fotter , how can i achive this,is there any way we can set it globally coz doing on every report is very time consuming.
    Regards,
    Tarang Jain

    You need Firebug....to know how your Dashboard works!!!!!!
    Check these 2 blogs and play.....
    http://oraclebizint.wordpress.com/2008/01/03/oracle-bi-ee-101332-customizing-download-links/
    http://oraclebizint.wordpress.com/2007/10/26/oracle-bi-ee-101332-styles-and-skins-firebug-to-your-rescue/
    i hope i helped....
    http://greekoraclebi.blogspot.com/
    Close the question.....and add a new thread...
    Give if you wish the appropriate points...

  • Data missing when I print preview and export to pdf but do see the data when i navigate to that page in the report

    Hi,
    I have a report which consists of 9 subreports in 2 tables..
    When the run report I do see data.
    when i export to a pdf and print preview the report in Bids.. i see data for the first 22 pages and then the remaining pages are blank with just the header showing up...
    when i go to the pdf and select page 25 it is blank but when i go the report and not in print preview mode.. and i type in 25 in the page number data shows up on that page...
    the report is set to a portrait and the margins are set to 0.
    How can I solve this problems and why is it happening... the size of the sub report are the same..
    Any help will be appreciated.
    Thanks
    Karen

    I should add that when I e-mail this document to myself and print it directky from the iMac, it prints fine.

  • How to print a report as pdf?

    To print a report as PDF I added the link to the report. But when I am clicking it nothing happens. Is there anything else other than putting the link in the report to be done for printing the report as dashboard.

    Hi,
    Check this : Print to PDF---Showing blank Page
    Thanks
    Aravind

  • Cannot print reports as PDF: Logger not set error

    Hi all,
    I'm trying to print some reports as PDF and I have the following problem:
    - I followed the step "5.Installing and Configuring Apache FOP" of http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    - When I try to print my report I get this message on OC4J console:
    08/04/30 11:54:42 [ERROR] Logger not set
    08/04/30 11:54:42 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Par
    08/04/30 11:54:42 [INFO] building formatting object tree
    08/04/30 11:54:42 [INFO] setting up fonts
    08/04/30 11:54:42 [INFO] [1]
    08/04/30 11:54:42 [WARNING] table-layout=auto is not supported, using fix
    08/04/30 11:54:42 [WARNING] Sum of fixed column widths 720000 greater tha
    um specified IPD 658800
    08/04/30 11:54:42 [INFO] Parsing of document complete, stopping renderer
    My question is about the Logger error. What is exactly a Logger?
    May I define it in j2ee-logging.xml file of OC4J?
    I'm working with:
    - APEX 3.0.1
    - Java SDK 1.4.2
    - Oracle Containers for J2EE (10.1.3.2)
    Thanks!
    Roger

    Hi again,
    I still didn't found the solution to my problem. In the "ascontrol.log" file of OC4J there is this warning:
    2008-05-05 11:36:28,934 [OC4J Launcher] WARN jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at E:\oc4j\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    Is it significant?
    Thanks

  • How to print my report to pdf silently

    Hi ,
    I have develop a program and that can print report to physical print automatically.
    Now I want to print them to pdf file automatically,  it prints about 1000 report a day.
    and the file name will be different each one,
    the filename will like :{reportID}_{date}_{printer}.pdf
    can I do that with adobe 9 ? if so how to and which edition I should purchase?

    Yes, I am print from a single computer ,
    the computer install the windows 2008 R2 , but I just need it can be print by a service or a remote desktop login.
    can you show me how can I do that?

Maybe you are looking for