How to invoke crystal reports from Oracle forms 11g R2 along with passing p

How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
how to pass parameters to crystal report, please help.

how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
cheers

Similar Messages

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    DECLARE
    charWinHandle VARCHAR2(50);
    numWinHandle NUMBER;
    BEGIN Set_Application_Property(Cursor_Style,'BUSY');
    charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
    numWinHandle := To_Number(charWinHandle);
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
    := 'DSN=;UID=' || Get_Application_Property(UserName) ||
    ';pwd=' || Get_Application_Property(password) || ';dsq=;';
    Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
    'C:\Sample_Rep.Rpt' );
    Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
    Set_Window_Property( 'MAIN', Window_State, Maximize );
    :reptitle := 'Report Preview Window';
    numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
    Set_Application_Property(Cursor_Style,'DEFAULT');
    END;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • Is it possible to call a Crystal Report from Oracle Forms.

    Hi Everybody,
    I got a Dout about Crystal Reports. Is it possible to call Crystal Reports from Oracle Forms.

    Hello,
    That depends are you running Forms via the WEB or client/server. I will assume you are running client/server since you are running crystal reports. The answer is yes. All you will have to do is use the HOST command or the win_api_shell to run the report. Look in the Forms manual for information on the commands and what else you may need.
    John

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • RUNNIG CRYSTAL REPORTS FROM ORACLE FORMS (for oracle report team too)

    I WANT TO RUN CRYSTAL REPORT FROM THE ORACE FORMS 6i how can i
    run this if any one has syntax or any detail please send me
    or reply
    thanks

    Ask the Crystal support forum how do you invoke their tool from
    a command line.
    You can then use host command from forms.
    You can also try and find out if they have an OLE2 interface and
    then work with the OLE2 package in forms.

  • Calling Crystal Reports from Oracle Forms 6i

    Hello
    I am trying to invoke/call Crystal Reports from Forms 6i.
    I have created OCX Item, while right click on item and insert-object, i am unable to see "Crystal Report" Control.
    I have installed crystal Reports 2008 (Version 12) and CR Standard Production version 9.
    Is there any Active X control registration in forms.
    I could see "Crystal Report Viewer Control 9" and "Crystal Report Print Control 12.0"
    Could some one help me,
    Thanks
    Tumuganti

    Did u Succeed in calling crystal Reports XI from Forms 6i
    or from Forms10g
    for me also the same Requirement
    please send any document ,Attachment ,steps to call Crystal Reports XI from Forms
    [email protected]
    Message was edited by:
    user501763

  • Calling parameterised reports from Oracle Forms 11g

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

  • How to mail a report from oracle form

    Hi,
    I have a form which call a report and report should mail to sender.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,MAIL);
    But where to give sender mail id, I don't know.
    Can anybody help me...
    Thanks in advance

    Hi Francois,
    Refer above documentation.
    Destype = mail
    desname =receiver emailid
    replyto = sender emailid
    configure smtp server still unable to send mail.
    Giving Following error:
    Rep-57054: inprocess job terminated. Report generated sucessfully but distribution to destination failed.
    Rep-50159: Report generated sucessfully but distribution to destination failed.
    Rep-50152: Destination Id failed with an error occurred while sending mail No receipent address.

  • Calling a report from oracle form 10g

    how to call a report from oracle form 10g

    Please see the link:
    http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to Call a jasper report from Oracle Forms 6i.

    Hi
    Can anybody tel me how to Call a jasper report from ORacle Forms 6i.
    Thanks & Regards
    Bango

    Forms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like:
    v_url := '<your url to the report>';
    host ('cmd /c start '||v_url);If it's web Forms 6i it even easier. Just use web.show_document(<url>).

  • Pls Help: View Crystal Report Via Oracle Form Builder

    Hi!!
    I want to know how to view the .rpt report (report made from Crystal Report) via Oracle Form Builder. I've to do it in my project. If you know, please tell me.
    Thanks in advance,

    I don't know how does crystal reports work, and I would guess you should ask the crystal guys to help you with this. find out if they have a command line interface that you can invoke from the host command in forms.
    We can help you do it with Oracle Reports though :-)
    http://otn.oracle.com/products/reports

  • How to call crystal report from plsql

    How to call crystal report from plsql?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:14685899341865976974::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241,

Maybe you are looking for