How would I display paper report, called from forms?

I want to call reports 9i, from forms 9i, and display the paper report on the screen. How would I do this? So far I have gotten forms to call the report and give me a status back of FINISHED, but I don't see anything displayed on my screen.
Thank you.

Hi,
you use the Forms Web.Show_Document() built-in for this. Please read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
Frank

Similar Messages

  • How Do You Debug Oracle Report Calls From Forms On The App Server?

    I am working on a system which uses oracle forms and reports 10g.
    In our system we call, we are calling oracle reports from oracle forms. How do we debug the form code when the form and report both are running on the application server in production.
    To my knowledge, this can not be done when the form is running locally since there is only OC4J forms services locally.
    I understand one views error messages through the jinitiator console but how does one turn on this facility? How do you determine what line the error occurred?
    I am looking for step by step instructions as answer to this issue.
    Please be specific. Please write in good English.

    Good afternoon,
    If you have the developer suite installed on your PC, run the report from your form and then follow this tree from the start button on your PC:
    Developer Suite Home =>
    Reports Developer =>
    Oracle Application Server Report Services =>
    Reports Queue Manager
    Select View => Past Jobs and then find your report in the list, double-click the report entry and you'll see the error message that was generated by the Report Server when you tried to run the report.
    Good luck,
    Don.

  • 4.5 to 6i migration or report calling from forms in XE???

    Hi Friends,
    I really appreciate your helping tendency. Let me explain the whole scenario.
    My application basically consists of
    Forms [32 Bit] Version 5.0.6.8.0 (Production)
    Report Builder 3.0.5.8.0
    Oracle Enterprise Edition Release 9.2.0.1.0 - Production
    Now we migrated our database into Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production. After the migration all the existing forms and report individually were running without any problem. But there was a huge problem. Whenever I tried to call any report from any form the report engine appeared and then stopped responding. So report calling from forms was not possible after the database migration. I was suggested by someone from OTN forum to migrate my forms and reports into 6i. I have started doing the migration using ifcmp60. WIth forms 6i, reports can be called from forms. But I am facing problem in every other steps. There are many things are not working after the migration though the migration log shows no error. For example, COMMIT_FORM, EXECUTE_QUERY (for detail table), LOV, TOOL.GETVAR lots of things are not working.
    My application has 200 forms and 250 reports.
    Please help and advise on:
    How to call reports from form when the database is XE Or
    How to overcome the stated migration problem
    Rgds,
    Luther

    Dear Mark:
    I have two choices. I can either migrate to 6i or I can go with the existing 4.5. If I go with 4.5 ......the reports are not being called from forms. This problem is happening after I changed the database from 9i to XE. Please advise what to do so that I can keep my forms in 4.5, database in XE and can call reports from forms.
    Rgds,
    Luther

  • How to display a Report 9i from Forms if the Report has a Parameter Form?

    Hi,
    could some one please post me a code sample to show how to call a (paper layout, RDF) Report from Forms if I would like it to display the Report's parameter form first?
    Thank you in advance.
    Tamas Szecsy
    I used the following code segment do achieve the job, but I get "REP-546: Warning: The value of restricted LOV parameter P_ALAL is not among the selectable values" message, even though I would like to specify the P_ALAL value on the report's parameter Form.
    declare
    paramlist_id ParamList;
    tmp_riport_name varchar2(200);
    report_id          report_object;
    report_job_id varchar2(200);
    tmp_id number;
    begin
    -- init
    tmp_riport_name := null;
              -- parameter list
    paramlist_id := get_parameter_list('mytmp_params');
    if not id_null(paramlist_id) then
    destroy_parameter_list(paramlist_id);
    end if;
    paramlist_id := Create_Parameter_List('mytmp_params');
    add_parameter( paramlist_id, 'PARAMFORM', TEXT_PARAMETER, 'YES' );
              -- call report
    report_id := find_report_object( 'DUMMY' );
    if report_id.id is null then
         return;
    end if;
    -- display
    set_report_object_property( report_id, report_execution_mode, runtime );
    set_report_object_property( report_id, report_comm_mode, synchronous );
    set_report_object_property( report_id, report_destype, 'preview' );
    set_report_object_property( report_id, report_desformat, 'PDF' );
    set_report_object_property( report_id, report_server, 'rep_geoias' );
         set_report_object_property( report_id, report_filename, :ALAP_REPORTS_NAME||'.rep' );
    report_job_id := run_report_object( report_id, paramlist_id );
    tmp_id := to_number(substr( report_job_id, length(name_in('rep_geoias'))+2 ));
    web.show_document( '/reports/rwservlet/getjobid'||tmp_id||'?server=rep_geoias', '_blank' );
    END;

    I think you specified report object name incorrect.
    in command line:
    repid := FIND_REPORT_OBJECT('REPORT1');
    Report1 must be name of report object in Form Builder.
    However to call report from Oracle Form you must do more work. For example:
    - Create report server name
    - Adding some code to set property for report object base on report server you created.
    Cheer!

  • How to display the output of a reports called from forms in the same window

    Hi all.
    I have installed Forms / Reports 11g Rel2 developer only installation on my windows 7 box.
    I can successfully call a reports from forms using RUN_REPORT_OBJECT and WEB_SHOW.document, but the report is opened in a new window.
    I'd like to open it in the same widow, in a new tab, similar to ctrl-t and make a call.
    How is that possible?.
    I'm using Chrome 25.0. Could this be done through browser settings?.
    Thanks in advance ...!
    Edited by: myluism on 14-mar-2013 6:09

    Don't know for Chrome, so Google for it.
    One more thing, though. what is the 2nd parameter in web.show_document? Is it '_blank'? If not, try that.

  • Report Called from FORMS having Printing Problem

    Hi all
    Guys i have a report problem in reports 6i.
    I am calling a report from my FORM 6i directly to printer (a dot matrix printer).
    I have set
    Add_Parameter(pl_id,'DesType',TEXT_PARAMETER,'printer');     
    The report is actually a confirmation report and i have given its layout height equal to 3.7 . But when i send it to printer it ejects the paper equal to 11 (equal to height of a portarait report).
    How can manage this ejection from Form or Report Side.
    NOTE : This problem occurs even if print the report from report preview(means not printed directlty from FORM).
    Kindly help me with this if any.
    I need it urgent.
    Thanx.

    Hello All
    The furthur detail to my previous problem is given as follows:
    I am getting problem
    with the Oracle reports. I have a dot matrix printer (Epson LQ-300, which is a
    tractor feed printer). While printing a report which is always not more than half a
    page, the printer does not stop after printing the report(the half page). It stops at
    the end of the page. I mean that half the page is printed and the rest half is blank.
    I want that the printer should print only at half a page. On the blank half it should
    print another copy of same report.
    Regards,
    Qaiser Qayyum Malik.

  • Report call from forms and 1017

    Hi,
    we have a web application and and it's first screen is the login screen where user can change their password or when grace time comes we force the user to change their password etc. Password changes successfully, no issue and user goes inside the application. But here is the problem. When user clicks the report after chagning the password then report doesn't work, can't connect to database and audit trail shows 1017 so obviously when they click 3 times their account gets locked because in profile it's set to 3 failed attempts. When user close the application and re login again and then click the report, it works fine. I'm suspecting the new changed password doesn't pass to the report? i would really appreciate for your help, suggestions, advise. how do i make sure that the new changed password should be passed to the report?. We're running against 11g database and sec_case_sensitive_logon is set to false.
    Thanks
    RM

    Thank you for replying.
    Forms and Report Version:
    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Report Builder 10.1.2.3.0
    ORACLE Server Release 10.1.0.5.0
    We have a common procedure in the forms Obj Libarary which is called from WHEN-BUTTON-PRESSED trigger.
    Here is the common procedure:
    PROCEDURE EP_RUN_REPORT
                             (     as_in_rep_name      IN     VARCHAR2,
                                  as_in_plist               IN     PARAMLIST,
                                  ab_in_printer          IN     VARCHAR2     DEFAULT NULL
    IS
         ls_rep_id           REPORT_OBJECT;
         ls_job_id               VARCHAR2(300);
         ls_status           VARCHAR2(20);
         ls_url                    VARCHAR2(120);
         ls_rep_server     VARCHAR2(100);
    BEGIN
         TOOL_ENV.GETVAR( 'REP_SERVER' ,ls_rep_server );
         IF ls_rep_server IS NULL THEN
           pkg_alert.ep_alert('E','ERROR GETTING ENVIRONMENT VARIABLE');
           RAISE FORM_TRIGGER_FAILURE;
         END IF;
         ls_rep_id := FIND_REPORT_OBJECT (as_in_rep_name);
         IF ab_in_printer     IS NULL THEN
              SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_DESTYPE, CACHE );
              SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_DESFORMAT, 'PDF');     
         ELSE
              SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_DESTYPE, PRINTER );
              SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_DESNAME, ab_in_printer);
         END IF;
         SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_SERVER,  ls_rep_server );      
         SET_REPORT_OBJECT_PROPERTY(ls_rep_id, REPORT_OTHER, 'PARAMFORM=NO');
         ls_job_id := RUN_REPORT_OBJECT (ls_rep_id, as_in_plist);     
         ls_status := REPORT_OBJECT_STATUS(ls_job_id);
         WHILE ls_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              ls_status := REPORT_OBJECT_STATUS     (ls_job_id);
         END LOOP;
         IF ls_status = 'FINISHED' THEN
              IF ab_in_printer     IS NULL THEN
                   TOOL_ENV.GETVAR('URL',ls_url);
                   IF ls_url IS NULL THEN
                     pkg_alert.ep_alert('E','ERROR GETTING ENVIRONMENT VARIABLE');
                     RAISE FORM_TRIGGER_FAILURE;
                   END IF;
                   WEB.SHOW_DOCUMENT(     ls_url ||
                                                                     'reports/rwservlet/getjobid'||
                                                                     SUBSTR(ls_job_id, INSTR(ls_job_id,'_',-1)+1)||
                                                                     '?'||'server='||ls_rep_server,
                                                                     '_blank');
                   ELSE
                        NULL;
                   END IF;
         ELSE     
           pkg_alert.ep_alert('E','ERROR WHILE GENERATING REPORT');
           RAISE FORM_TRIGGER_FAILURE;
         END IF;
    END;Is there any other option beside giving the message?
    thanks again.
    RM

  • Report call from FORMS

    Hi
    Can we apply both below methods to call paper layout or web lay out
    1. WEB.SHOW_DOCUMENT()
    2. RUN_REPORT_OBJECT()
    Or else web lay out reports call only from one of them?
    Rgds
    Shabar

    Hello,
    For Paper Layout , you can use both Forms Builtins :
    WEB.SHOW_DOCUMENT()
    RUN_REPORT_OBJECT()
    For Web Layout , only WEB.SHOW_DOCUMENT() can be used .
    Regards

  • 11g reports calling from forms issue

    Hi,
    I am have installed the Oracle fusionware 11.1.4 version in windows XP ser2.
    I have configured the forms,reports server components and developer components.
    Forms are working fine. However i am getting the error while calling reports from the Forms.
    I am trying to convert the 6i forms and reports.
    The report calling code run_product is not worked, so i am changed the code to web.show_document.
    While running the form to call the report am getting the following error.
    REP-51019: System user authentication is missing.
    REP-50171: Authentication failed.
    Code is written in the form as shown below....
    v_show_document :='http://localhost:9002/reports/rwservlet?report='||:parameter.p_report_id||'.rep'||'&desformat=PDF&
    destype=cache&userid=SALIS/SALIS@SALIS&buffer_records=NO&debug_messages=NO&array=YES &query_only=NO&quiet=NO&RENDER=YES'||'&p_fromdate='||:CB_DUMMY.FROM_DATE||'&p_todate='||:cb_dummy.TO_DATE||'&lv_where='||lv_where||'&REPORT_ID='||:parameter.p_report_id||'&PARAMFORM=NO';
    web.show_document(v_show_document,'_blank');

    Check if you have SSO enabled:
    http://download.oracle.com/docs/cd/B14099_11/bi.1012/b14048/pbr_sso.htm#i1008966
    (this is the link for 10g but it may be the same for 11g. Look for the 11g link if this doesn't work for you).
    The report calling code run_product is not workedThat only works for Forms 6i. You should use run_report_object.

  • App Server 10g2 - PDF Reports called from Forms go to a background window

    Hi all
    We have Application Server 10g2 in use, mainly for legacy forms and reports. We also have the Secure Java Web.Show_Document bean (frmrwinteg.jar) installed. Since the application of the October 2008 CPU when a form calls a PDF report, it will pop in the background and leave the Internet Explorer window with the form at the front. We have not changed any configuration settings which could affect this.
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer? We'd appreciate any tips on this. Thanks.

    Well I am not sure if this is the original question. Here is what SebastienL mentioned originally:
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer?He also mentioned this:
    Before, the PDF window would open in front of IE, like any new window should. Now it opens in the background and IE stays in front.And it seems to be happening not just for him but for all users (on multiple client machines) as he mentioned this:
    This occured overnight after a CPU patch to everyone who uses the system.If I am interpreting it correctly (and I don't claim to be correct in my interpretation), the issue is not about having to open PDF in the same IE window as the Forms. I am guessing SebastienL is looking to have PDF document appear in foreground (on top of Forms IE window) vs. it showing up in background (behind the Forms IE window).
    Did I get it right SebastienL?
    It does sound very much client configuration issue but I doubt (if my above assumptions are correct). Let me dig around and see if I can find something.
    Thanks
    Shail

  • Programmatically disabling the PRINT button in REPORT called from FORMS

    Hi All,
    Is it possible to disable the PRINT option from reports6i programmatically when we call it from FORMS6i ?
    Thanks in Advance
    Dora

    Thanks Sarah
    When i added the following,
    Add_parameter('PLIST', 'DISABLEPRINT', TEXT_PARAMETER,'YES');
    It worked..

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How to track report called from a from

    We have a Form that calls a report using the show_document command. Is there a way to track when the report is called inside the form? Thanks.

    Hi,
    you can install the Reports queuetableto list all Reports requests and its current status. The only problem you face is that using Web.Show_Document() you don't have a jobid to locate the job. So using Web.Show_Document() its hard to achieve what you are planning to do.
    If using Run_Report_Object() instead you can read the Reports status from Forms so that you know what the current status is. In addition you retrieve a jobid that allows you to query the queuetable. A Whitepaper is available at otn.oracle.com/products/forms
    Frank

  • How can i display Intaractive report ,

    Hi Experts,
    How can i display Intaractive report ,
    In basic List i want to print EMP data on top.
    and infotype number and infotype text .
    In secondary list infotype data on which the user intactive with infotype no..
    If user intaract the 0001 infotype, In secondary list i want display only 0001 data.
    thanks advace,,,REWARDs for usefull answers

    hi,
      Think this code helps u..check this out.
    SY-LSIND - Returns list index value
    SY-LISEL - Stores the contents of the line selected from the list.
    SY-LILLI - Returns line number of the line selected from the list.
    Eg. code:
    TABLES : ZCUST_MASTER2.
    DATA : WI_ZCUST_MASTER2 LIKE ZCUST_MASTER2 OCCURS 0 WITH HEADER LINE.
    DATA FLD(30).
    SELECT * FROM ZCUST_MASTER2 INTO TABLE WI_ZCUST_MASTER2.
    WRITE :/ 'CUSTOMER IDENTIFICATION NUMBER' COLOR 5.
    LOOP AT WI_ZCUST_MASTER2.
    WRITE : / WI_ZCUST_MASTER2-ZCUSTID HOTSPOT ON.
    ENDLOOP.
    AT LINE-SELECTION.
    GET CURSOR FIELD FLD.
    IF FLD = 'WI_ZCUST_MASTER2-ZCUSTID'.
    SELECT * FROM ZCUST_MASTER2 INTO TABLE WI_ZCUST_MASTER2 WHERE ZCUSTID = FLD.
    WRITE :/ wi_zcust_master2-zcustid,
             wi_zcust_master2-zcustname,
             wi_zcust_master2-zaddr,
             wi_zcust_master2-zcity,
             wi_zcust_master2-zstate,
             wi_zcust_master2-zcountry,
             wi_zcust_master2-zphone,
             wi_zcust_master2-zemail,
             wi_zcust_master2-zfax,
             wi_zcust_master2-zstat.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    Please reward if it is useful.
    Sri
    Edited by: p525618 on Feb 11, 2008 1:18 PM

  • Reports 10g calling from forms 10g

    try reports 10g calling from forms 10g ,but I not do.
    Programme have frm-41213 unable repserver.. error and I am not start up oracle reports server from services. please help me.

    Dear Lida;
    i use this code
    rwserver -install repsername
    but in release 3 it is not work and i had to write it like this
    rwserver server=repservname
    the first code make the report server work as service could u tell me how the first code work with realease 2 but in realeas 3 not working ?
    and thkx alot in advance
    regards
    Reda El Mitwally

Maybe you are looking for