Creating a PDF report within a popup window

bq. Hi, \\ Within my application i've a page which uses JasperReports to generate a simple PDF report within prerender(): \\ public void prerender() { \\ try { \\ this.planned_bar_tripsDataProvider1.refresh(); \\ if (this.planned_bar_tripsDataProvider1.cursorFirst()) { \\ getApplicationBean1().*jasperReport* \\ ("PlannedBarTripsReport", "application/pdf", \\ getSessionBean1().getPlanned_bar_tripsRowSet1(), null); \\ } \\ } catch (Exception ex) { \\ log("Exception generating report", ex);} \\ } \\ jasperReport() is taken from the Sun PDF tutorial (http://developers.sun.com/jscreator/learning/tutorials/2/reports.html) \\ Now, when this page is opened within the application (browser) window the PDF report successfully renders. \\ However, when the page is opened within a popup window, using the (onclick) Javascript function: \\ function generateReport() { \\ window.open('PlannedBarTripsReport.jsp') ; \\ window.event.returnValue = false; \\ } \\ the PDF report fails to render. The result is a brief pause followed by a blank popup. No exception. No Abobe embedded window. No clues as to what's gone wrong. \\ Any advice would be greatly appreciated. \\ Ta.

Hi Venkatv and everyone.
This is the link where I found about Including Dynamic Images in a Report.
http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
It's so easy and clear to do.
Good Luck!!!
Regards.
Ayrem

Similar Messages

  • OBE - Creating a PDF Report

    http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt_otn.htm
    At the above link is a samle demo of how to create a PDF report using Oracle 11g, BI Publisher, BI Publisher Desktop.
    I am stuck at the step # 8:
    Import the Printing Application in Application Builder using the printapp.sql file located in the directory where you unzipped the file in the previous step.
    I have the above referenced file and when I execute it I get the following error:
    SQL> alter session set current_schema=APEX_030200;
    Session altered.
    SQL>
    SQL> @prntapp
    APPLICATION 107 - Printing Application
    Set Credentials...
    Check Compatibility...
    API Last Extended:20090112
    Your Current Version:20090112
    This import is compatible with version: 20070108
    COMPATIBLE (You should be able to run this import without issues.)
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
    key not found
    ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
    ORA-06512: at line 3
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    The BI publisher is working fine as I can see all the executive reports as well as all the demos work fine.
    Also: At the below URL
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#03
    At step 5: 5. Installing and Configuring Apache FOP
    I am expected to install the fop.war file using OEM. I have OEM for 11g working but I don't see the application component, just the Database. How do I get the App component working. The BI Publisher was installed using "basic" option as suggested by the OBE I am using.
    Thanks a lot for your help.
    Mohsin

    Hi Venkatv and everyone.
    This is the link where I found about Including Dynamic Images in a Report.
    http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
    It's so easy and clear to do.
    Good Luck!!!
    Regards.
    Ayrem

  • How can you create a pdf report to attach to an email?

    I have a need to create a PDF report with graphics and signature and somehow attached the PDF document to and email to send out. This is all hopefully done in my APEX application. Has anyone done anything similar?

    I have several projects that use PL/PDF - with the pdf form filling API's - to populate pdf form and then attach the output to a BLOB variable in PL/SQL - which can then be attached to e-mail, displayed to user's browser, and saved into a BLOB column in a table. If you are comfotable with coding PL/SQL packages, this is not difficult to do at all.
    The goodness of PL/PDF is that it is composed of PL/SQL packages with some wrapped Java programs - the output is generated directly from the database. You don't need to deal with the complexity and security concerns of calling an external Java middle tier to return the document. However, if you are not comfortable with PL/SQL coding, this may be a lot of work because the software does not have a report designer like Oracle BI Publisher, which costs more than $90K to run on a 2-CPU Server.
    Thanks.
    Andy

  • Creating a PDF report from a Form

    Hi all,
    Is it possible to create a PDF REPORT from a table based Form?
    Thanks,
    Maurice Niezen

    You can NOT use FOP and the BI Publisher RTF editor to make templates for PDF output.. You need an XML style sheet editor to format the report layouts..: http://www.java4less.com/fopdesigner/fodesigner.php
    Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS
    If this question is answered, please mark the thread as closed and assign points where earned..

  • I have a problem creating a pdf from within Firefox using the print to function.

    I have a problem creating a PDF from within Firefox. I get an error message stating that Adobe PDF creation cannot continue because Acrobat is not activated. Acrobat Pro then opens. If it try to create the PDF again, the same problem. I have FF ver 3.6.10 and Acrobat Pro 8 (from Acrobat CS3).

    This is an Apple user forum, no-one from Apple is here.

  • Report link to popup window

    Hi All,
    Using Portal, I've designed a report based on a table, this report includes links to another report (detailed information), my problem is that it opens the new report in a full new window (screen size), I need to open the new report inside a popup window of a pre-defined size. Any ideas ?
    BTW : my initial report is displayed in a portlet.
    At this moment, the only trick i have found is to target the link to a dynamic page including the detailed reports with a onload tag and a javascript openwindow, I didn't try at this moment and hope there is a more elegant way to do this !
    Thanks for your help.

    You will be needing both PL/SQL and javascript.
    You need a javascript function to do the window.open()
    You will need some pl/sql code in the Additional pl/sql block (before showing the header) to generate the javascript function.
    Use htp.p() to generate the javascript function.
    The javascript function that you are going to generate, say callreport2(param1), will do a window.open("<url-of-2nd-report">);
    If you are using reports based on sql queries, stop using the link component. Instead, you will have to generate the link in the query e.g. if I need to generate a link on the ename field and if the 2nd-report takes empno as the bind var, then my query wud be :-
    select '<a href="javascript:callreport2(''' || empno || ''')">' || ename || '</a>' ename,
    from scott.emp
    Make the display type of the ename field as HTML

  • How can I create a pdf-report in a database trigger

    Hi,
    how can I create a pdf-file with Reports 9i in a database trigger ?
    Where can I find informations about it?
    Thanks
    Friedhold

    Here would be the place to start.
    If you have existing reports to call, take a look at the JRC

  • How to pass value from report table to Popup window

    suppose i have a report region
    from query
    "Select * from emp"
    i need to get a popup when i click on the row,
    i need all the columns should be displayed inthe popup window;
    i have written javascript in the report template, by passing #COLUMN_VALUE#
    the issue here is iam only getting the column on which i click,
    is there any way to refer the next column ?
    or am i doing it in wrong manner ?

    Hi Mike,
    Yes what you said is exactly correct ,
    i have a query , but for that i need some PK { three columns } from the the page where this popup will be called,
    i have three columns in the row which makes it as PK,
    now how can i pass three columns from a page to popup ? provided if i click on the row of an table, i want that rows three column to be passed .

  • How to Create new PDF Report in ORacle Apex3.2 without having XML Publisher

    I am an Apex developer , my requirement is to develop the PDF file from Apex 3.2 with out using Oracle BI Publisher.
    Can anyone let me know the possibility??
    Thanks,
    Dhana

    Dhana,
    What reports are you trying to generate? I believe Apex can generate PDF reports out-of-the-box.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31rpt.htm
    APEX forum: Oracle Application Express (APEX)
    regards,
    Rownald

  • How to create downloadable pdf report as hyperlink within BSP application

    Hi,
    I'm developing a BSP application using MVC and htmlb extensions on a WAS 6.40. One of the requirements of my webapplication is:
    - the ability to generate a report in pdf format at runtime, using data retrieved from a backend SAP CRM 3.0 system
    and
    - make this report available/downloadable via a hyperlink in the application.
    I am aware of tools like Smartforms and Adobe interactive forms but need some help to get started and choose the right tool.
    regards, Roelof Jan

    Hi,
    we've done that by firstly building a RFC which prints the report to sap-spool:
    call function 'GET_PRINT_PARAMETERS'
          exporting
            expiration     = 1
            immediately    = ' '
            new_list_id    = 'X'
            line_count     = 65
            line_size      = 132
            report         = sy-repid
            no_dialog      = 'X'
          importing
            out_parameters = wf_params
            valid          = valid_flag.
        if sy-subrc ne 0 or valid_flag eq false.
        endif.
        new-page no-heading no-title print on parameters wf_params
                          no dialog .
    ... list processing ...
    new-page print off.
      concatenate programname sy-uname+0(3) into lc_rq2name separated by '_'.
      select * from tsp01 into tsp01_wa
                          where rq2name = lc_rq2name
                          and rqowner   = sy-uname
                          order by rqcretime descending.
        wf_spono = tsp01_wa-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear wf_spono.
      endif.
    Then convert the spooljob:
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = wf_spono
          no_dialog                = 'X'
        tables
          pdf                      = witab
        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   = 8
          err_btcjob_submit_failed = 9
          err_btcjob_close_failed  = 10
          others                   = 11.
      if sy-subrc ne 0.
        return.
      endif.
    Delete Spooljob and generate cached response:
      data del_spono type  tsp01_sp0r-rqid_char.
      del_spono = wf_spono.
      call function 'RSPO_R_RDELETE_SPOOLREQ'
        exporting
          spoolid = del_spono.
      if witab is not initial.
        loop at witab into itab .
          translate itab using ' ~'.
          concatenate output itab into output in character mode.
        endloop.
        translate output using '~ ' .
        create object cached_response
               type cl_http_response
               exporting add_c_msg = 1.
        l_pdf_len = strlen( output ).
        cached_response->set_cdata( data   = output
                                    length = l_pdf_len ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        data: guid type guid_32,
              display_url type string.
        call function 'GUID_CREATE'
          importing
            ev_guid_32 = guid.
        concatenate runtime->application_url '/' guid '.pdf'
                    into display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
        app ?= application.
        app->print_url = display_url.
      endif .
    The display_url has to be used in the normal response-view:
    <script type="text/javascript">
    var param = 'width=700'
          + ',height=550'
          + ',left=0'
          + ',top=0'
          + ',menubar=no'
          + ',location=no'
          + ',resizable=yes'
          + ',status=no';
      window.open('<%= application->print_url%>', 'DRUCK', param ).focus();
    </script>

  • How Can I open Report within the same window instead of separate Window

    Hi All,
    I want to open report in my MDI form instead of opening it into a separate Oracle Report Navigator(i.e. Window which shows the report). How to do that? When I click the Report from Menu it should open it within the MDI Form. Any suggestion or reply would be greatly appreciated.
    One more question is how can i open report with in a maximized state. Actaully, the report will be opened in the normal state. How to open in maximized state instead of normal state. Is there any property in reports to acheive this?
    Thanks in Advance.
    Regards
    Gopinath Kona

    hello,
    reports is a separate application that is called from forms and therefore is running outside the context of the forms MDI window.
    you can use the commandline parameter MAXIMIZE=YES to start the runtime in full-screen-mode.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can i create a gradient chooser within the plugin window

    Hi
    i'd like to create a gradient chooser similar to the one used in Photoshop but inside the plugin window.
    How can i do that ?
    And i need a way that is compatible Mac/windows if possible
    thanks a lot!
    Jeff

    Hi Chris
    thank you for your answer.
    finally i got WxWidgets working within Photoshop thanks to Dimitri from wx-users and i also found an all-done gradient editor! so all is good thanks
    Jeff

  • IE Browser not able to display a PDF file within the Browser window ...

    Hello acrobat experts!
    I'm now writing a plugin for the acrobat. According to my customer requirements, the pdf file is expected to be displayed within the MS IE
    browser widows. It worked within adobe Reader and Acrobat 7.0.x.
    Now I wanted to test my plugin against version adobe Reader and Acrobat
    8.0, 8.1.0, 8.1.1. Unfortunately, I got a strange behavior: pdf files are
    being diplayed in seperate windows, i.e. the IE browser window is empty
    and white blanked!
    - (Un)check "Display PDF in browser" option and close the window
    didn't help!
    - I tried also to upgrade gradually and after each upgrade checked if the
    problem persists --> I had the same behavoir after each update:
    7.0.5 -> 8.0; 8.0 --> 8.1.0; 8.1.0 --> 8.1.1
    - In some google - forums I found out that the following DLL's may be
    missing:
    Acropdf.dll, Acroiehelper.dll,Gbdetect.dll and Pdfshell.dll
    i got these dll's, put them into the activeX directory, but still I
    have the same problem
    You guys, do you have useful links / tips for me? Is this a known bug
    in the acrobat / Reader 8.0, 8.1.0, 8.1.1?
    By the it works fine within firefox!
    Further info about user SW versions:
    IE browser version 6.0 SP2, Windows XP SP2
    Thanks a lot in advance for your help
    Caleb

    thanks for the quick feedback-
    no, because my customer is using the IE 6. According to the system
    requirements all these Acrobat/Reader versions should also run
    properly under IE 6 http://www.adobe.com/support/downloads/detail.jsp?ftpID=3796
    I have a look in IE >> manage- add-ons and got the following Add-ons
    for adobe
    - Adobe PDF
    - Adobe PDF Conversion Tool helper
    both are enabled!
    Do I need more?
    can u pls check, if u have the following ddl's in the adobe home dir:
    Acropdf.dll, Acroiehelper.dll,Gbdetect.dll and Pdfshell.dll
    Thanks
    Caleb

  • Is it possible  to create a PDF report without using BI Publisher?

    Hi,
    I need to create a report in pdf using APEX, but I don't have BI publisher and I am not interested in to buy it . Which is it the best way to solve my problem?
    Thanks
    Edited by: user13486053 on Jan 7, 2011 6:48 AM

    Have your DBA install FOP and then find a good xml style sheet editor. Or have them install jasperreports and then use ireports to format them...
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • I can't open pdf files.  The popup window says to install adobe but when I download adobe it says I already have it

    I can't open pdf files. 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

Maybe you are looking for

  • Transferences from ipad to mac

    How we can transfer music from IPAD to Mac without without using sincronization process.

  • Running v10.4 (intel) on a UFS formatted system volume

    Hello, My (recently deceased) iBook ran Mac OS X v10.3, and I used to be able to install it onto a UFS formatted system volume. This was very useful to me in my work. My new MacBook with v10.4 doesn't seem to allow this option during the install proc

  • Adobe Download Assistant Trouble

    Im trying to download an Adobe product.  The problem is the program is installed through the Adobe Download Assistant.  Whenever I click on the .exe to download the assistant I hit "Run" and then nothing happens after that.  Any help would be appreci

  • Send Smart form as a fax

    Hi, We are working on WebAS 6.20. We are trying to send a smart form directly to a fax machine. We have SAPConnect configured and are using the SMTP server to communicate to the fax machine. I want to know what fax server needs to be installed and ho

  • Alternatives to tab?

    i am having to design a page with 3 levels of nested tabs(ugh). Are there any ui components in portal that can be used instead of tabs? I am sorry if this question is general, but hoping to just get some ideas.