FRM-41214 unable to run report from forms with parameters

Hi all,
I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
I used set_report_object_property to pass the parameters.
Any clues to solve this problem?
Priya

Hi Jeneesh,
Code is below:
myreport1 :=find_report_object('MYREP');
reportdata := Get_Parameter_List('reportsdata');
IF NOT Id_Null(reportdata) THEN
Destroy_Parameter_List( reportdata );
END IF;
reportdata := Create_Parameter_List('reportsdata');
Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
     /* Setting the properties into Report Object */
     SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
     SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
     SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
     SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
               SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
          SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
     /* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
     vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
/* Checking for Report Server is started or not, if not throw an exception else proceed */
     if vrep = vrep||'_0'then
     raise form_trigger_failure;
end if;
     vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
     vrep_status := REPORT_OBJECT_STATUS(vrep);
     /* Checking the status of the report */
     WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
vrep_status := report_object_status(vrep);
END LOOP;
/* When the report status is successful then report is generated in Web */
     IF vrep_status = 'FINISHED' THEN
     --     COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
          WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
     END IF;
---Any clues?

Similar Messages

  • FRM-41214: Unable ro run report while calling a report from a form in 9iDS

    Am in the process of migrating from Developer 6i client/server to Developer 9iDS on Windows 2000.
    I have read through the various postings on this issue & have made changes accordingly. I also referred to the white paper on the Forms/Reports integration.
    As I am trying to do a prototype, am compiling my forms/reports on my local machine & not on the apps. server.
    I installed a report server on my local machine as,
    rwserver -install 9irep
    I have defined this as a NT service and it is up & running & so is my OC4J instance.
    I have defined a reports object in my Form Builder & set Report Server=9irep,
    Destype=Cache,
    Execution mode=runtime
    Communication_mode=synchronous.
    I also removed the /security tag from the <report server>.conf file as suggested in the white paper. Also set the single sign-on to NO for the reports service.
    I have replaced my run_product with the run_report_object built-in as follows.
    Declare
    report_id      REPORT_OBJECT;
    report_status VARCHAR2(255);
    rep_job_id      VARCHAR2(255);
    Begin
    report_id := FIND_REPORT_OBJECT('KS'); --Created in form under node "Reports"
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,'C:\Kalpana\9i_Prototype\ISSMDLCUST.rdf');
    rep_job_id := RUN_REPORT_OBJECT(report_id);
    report_status := REPORT_OBJECT_STATUS(rep_job_id);
    WHILE report_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    report_status := REPORT_OBJECT_STATUS(rep_job_id);
    END LOOP;
    message(report_status); pause;
    IF report_status='FINISHED' THEN
    Web.Show_Document('http://houwdisndgd01:8888/reports/server/getjobid='
    ||rep_job_id||'?server=ks');
    END IF;
    End;
    I get an error message "FRM 41214: Unable to run report" right after the call to run_report_object.
    Can someone please tell me where am going wrong with my run_report_object built-in? (I also need help writing my web.show document to point it to my local machine/folders).
    Thanks
    Kalpana

    How I have implemented the same and works
    Local OC4J is running.
    I established a reports server "repserver90" as a service.
    I created a report named "C:\TMP\TMP\test_report.rdf"
    I created a form with a Reports object with properties:
    Name: "EMP"
    Filename: "C:\TMP\TMP\test_report.rdf"
    Execution mode "Batch"
    Communication mode "Sychronous"
    Report Destination Type "Cache"
    Report Destination Format "HTML"
    Report Server "repserver90"
    I call the report with the procedure:
    PROCEDURE TEST_REPORT IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('EMP');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://localhost:8888/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;
    Minas

  • FRM-41214 unable to run report

    Hi,
    i'm trying in this days to migrate my software from 6i to 9i....
    Particularly i had some problems when i try to launch a report from my form...
    The form had migrated from Oracle 6i and it seems that it hasn't any type of problem but when i try to call a report from the web i obtain the error FRM-41214 (unable to run report)
    but this report is correctly positioned in the right path and when i use a different report of a different project (compiled for the 9i) i note that the error occurs when i use one of my group obtained from my queries like source for a new repeating frame.....
    Exactly until when i use one of the old groups of the old report it's all right but when i try to use a new group referred to a my new query i obtain the precedent error
    (FRM-41214, unable to run report)
    But i don't have any type of error when i compile...
    Can anyone help me? Some one can tell me what can i do or some one can indicate me same document where i can read all the step to migrate a report??
    Thanks a lot in advance

    Problem resolved. Copy of document can be found
    in METALINK, NOTE: 1069651.6. This will resolved the problem.
    Thanks.

  • FRM-41214: Unable to run Report geting as error

    I am converting 6i reports to 11g for that i am compiling 6i report in 10g reports and copy in 11g server
    in that report is calling from form i have writen query
    like
    DECLARE
    paramlistname VARCHAR2(30) := 'PLIST1';
    plid PARAMLIST;
    cnt number;
    report_id report_object;
    BEGIN
    plid := GET_PARAMETER_LIST(paramlistname);
    IF NOT ID_NULL(plid) THEN
    DESTROY_PARAMETER_LIST(paramlistname);
    END IF;
    plid := CREATE_PARAMETER_LIST(paramlistname);
    ADD_PARAMETER(plid, 'paramform', TEXT_PARAMETER, 'NO');
    ADD_PARAMETER(plid, 'p_division_code' , TEXT_PARAMETER, :control_007.division_code);
    ADD_PARAMETER(plid, 'p_depot_code' , TEXT_PARAMETER, :control_007.depot_code);
    ADD_PARAMETER(plid, 'P_VALIDITY_DATE' , TEXT_PARAMETER, to_char(:control_007.valid_date,'DD/MM/YYYY'));
    ADD_PARAMETER(plid, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    report_id := find_report_object('Report_NTP_Pending_QtyP');
              web_reportn(report_id,plid);
    DESTROY_PARAMETER_LIST(plid);
    go_block('Control_007');
    end;
    while runging a report from form i am getting error FRM-41214 Unable to run Report
    So Please Help Me how to solve this problem in 11g

    web_reportn(report_id,plid);This is where you actually call the report, so the error is in that procedure. What is the code of this procedure?
    Furthermore, I don't see any reference to system parameters, like destype, desname, report server name etc. Are they set in web_reportn?

  • FRM-41214- unable to run reports

    Env:
    Solaris running 6i forms and reports server patched to patch 9.
    when calling report from form using run_report_object, I get
    FRM-41214- unable to run report
    FRM-41217- Unable to get report job status
    FRM-41213- Unable to connect to report server RepsrvSMARTS
    This only occurs for one of the reports. I am able to run a different report
    with no problem.
    TIA!

    Jim,
    My guess is that the problem identified in bug 1731733 is the root cause. It manifests itself in various ways (see related bugs). The base bug is 1953704 and is fixed in Net80, and is available in one-off patches for various platforms, including Solaris.
    regards,
    Stewart

  • FRM-92101 error while running report from form

    HI All,
    I am getting the form error FRM-92101 while running report from form menu.My code is given below:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('REPORT47');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    Clear_message;
    END;
    Clear_message;
    --Arif                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    hi Arif
    Please see this note on MOS/Metalink for some common causes of this error:
    Known Causes of FRM-92101 Error In Forms [ID 604633.1]
    thanks,
    AMN

  • Unable to run report from forms developer.

    hi....
    i m not very much in developer 9i.from last 2 month i m doing developer 9i.I m desiging and running
    report from report builder.but i m not able to run that report from forms developer.Can anyone help to solve my problem?is there any particular extension i have to follow or any configuration(Application server) i have to made change?What code i have to write to run a report from forms?

    Hi frank...
    Thanx for ur reply...
    Actually what i did,i created a report and save that report with .rdf extension.I set reports_path(In Registry) property to the particular folder where i put all of my reports.In forms developer i add the report as report object from that folder.i set the following few lines in a button click event
    --=============================================
    declare
    rep_id report_object;
    v_rep varchar2(30);
    begin
    rep_id :=find_report_object('report4');
    v_rep :=run_report_object(rep_id);
    end;
    --=============================================
    when i click the button it is showing a error "You didnot specify the report name".This is all about from me what i did to run a report from forms.So should i do to run report?

  • Unable to run reports from forms using run_report_object

    Hi All,
    I am unable to run a report(9i) from forms(9i) in client side.
    I used the following code
    Declare
         repid REPORT_OBJECT;
         v_rep varchar2(100);
         rep_status varchar2(20);
    Begin     
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid);
    End;
    I get the following error
    FRM-41219 : Cannot find report:invalid ID.
    Any help will be highly appreciated.
    Thanks,
    Sanjay

    Hi All,
    I am unable to run a report(9i) from forms(9i) in client side.
    I used the following code
    Declare
         repid REPORT_OBJECT;
         v_rep varchar2(100);
         rep_status varchar2(20);
    Begin     
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid);
    End;
    I get the following error
    FRM-41219 : Cannot find report:invalid ID.
    Any help will be highly appreciated.
    Thanks,
    Sanjay Hi
    You have to create a report object within the form.
    If you look at the Object NAvigator in the Form Builder right below Record Group
    tou would see an option for Report. Create a new report object.
    Set the following properties for that object
    Filename - This should be the name of your RDF file you created from Report Builder along with the full path.
    Set the Execution Mode, Communication Mode and Report Destination Type as per your requirements.
    In the parameter for find_report_object() pass the name of the report object you created.
    eg.
    if the name of the report object you created is Report2 then
    your call should be rep_id := find_report_object('Report2') .
    You are calling the report object which has been created in your form builder and through that call you are running the report file specified in the Filename property of that report object.
    Regards
    Poorvi

  • URGENT!!! Unable to run report from forms

    I have created a from with one button. In when-button-pressed trigger is
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
    BEGIN
         repid := FIND_REPORT_OBJECT('produse');
         v_rep := RUN_REPORT_OBJECT(repid);
    END;
    I added the report 'produse' in the object navigator under the reports with the folowing proprieties:
    execution time: runtime
    commnunication mode: synchronus
    report destination type: preview
    report destination format:html
    report server:repserv (server created by me is up and running)
    I am trying to display a report in html format .. or any format.. when i select file to 'report destination type' it say the sane error but the report appear in an office application 'Document immaging'
    what is the problem? what settings do i have to make and where. i must specify that the server 'repserv' is configured automaticly.
    if i add an extra code line into the above trigger
    message(v_rep);
    i get repserv_0
    i have read the other posts on this problem and i havem't found the answer..or i don't know to interpret it?!

    In form's reports section set report destination type = cache, and use web_show_document to display the report.
    On Metalink Note:207396.1 you can find details.
    Paul

  • Unable to call report from forms-oracle9iDS.

    hi..,
    i created a report in reports 9i and calling the same
    from a form created in 9i,i am calling from a push button having following code in it..,
    Declare
    report_id Report_Object;
    ReportServerJob VARCHAR2(100);
    BEGIN
    report_id:= find_report_object('MyReport1');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'repserver');
    ReportServerJob:=run_report_object(report_id);
    end;
    while clicking this button i am getting the following messsage "frm-41214:unable to run report".
    steps followed
    1.Created a report by name myreport1.rdf
    2.attached the myreport1.rdf in the reports node of the forms browser.
    3.Created a reports server by name "repserver"using
    rwserver repserver -install autostart=yes
    4.report_path is checked for the path where my report is residing.
    5.added a string value in regedit tns_admin='oracle_home\network\admin'
    (**)6.in TNSNAMES.ORA I expect the error is here..,
    how do i refer this repserver in TNSNAMES.ORA..,????
    database server is in another node..,and report server is in my machine itself..,
    please help me urgent..,i am trying hard for this for a long time...??
    Regards,
    Akula.
    protechsoft systems Pvt.Ltd.
    Chennai,India.

    Akula,
    the Reports Server name doesn't need to be mentioned in teh TNSNAMES file anymore. This was required in Reports6i and before. Since Reports9i the architecture has changed and a Report Server can be accessed by its name in teh network. The problem that is reported can be due to uncompiled PLSQL in teh Reports rdf file. If you check the Reports queuemanager (on Windows) or using the Servlet command then you see the detailed error message. If you don't see any error message in teh queuemanager then the Reports module file wasn't found. Make sure that the Reports9i Server has access to this. The Reports9i Server Reports_Path is not set in the registry (as far as I know) but in one of its configuration files.
    As a quick test - look for the Reports sample files and add your file to the same directory.
    Frank

  • Running report from forms

    hi,
    I am having problems in running report from form.
    I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
    my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
    Name REPORT7
    FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
    Execution Mode Batch
    Communication Mode Synchronous
    Destination Type Cache
    Report Server 9irep
    and in when_button_pressed trigger
    DECLARE
    Report_Id REPORT_OBJECT;
    Report_Job_Id VARCHAR2(20);
    Report_Status VARCHAR2(80);
    Report_Svr VARCHAR2(20);
    BEGIN
    Report_Id := FIND_REPORT_OBJECT('REPORT7');
    Report_Svr := '9irep';
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
    Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    END LOOP;
    IF Report_Status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
    else
         message ('report server failed with error message '||report_status);
    END IF;
    END;
    i have installed report server with following command
    rwserver -install 9irep
    i have changed entry in rwservlet.properties like
    SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
    <!--security id="rwSec" class="oracle.reports.server.RWSecurity">
    <property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    </security-->
    i get the following error message when i run my form
    frm-41214 Unable to run report
    and then next message is
    frm-41217 unable to get report job status
    i debugged the report id and it is
    9irep_0
    returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    When I checked the Report Queue Manager
    it is showing status like
    (9irep)Terminated with error
    and detail it shows is
    Unable to connect to the specified database.
    Now I am wondering what to do next.
    any suggestions???????

    Hello,
    From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
    Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
    SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
    so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
    Thanks,
    The Oracle Reports Team.

  • 10g Run Report from Form

    Oracle 10g Developer suite
    using OC4J
    hi experts
    can you please share some code here to run report from form with and without passing parameters.
    regards

    Try This
    Declare
    v_connect     VARCHAR2 (200)  := 'userid=nisadmin/nisadmin@abc';
    v_report_name     VARCHAR2(100)   := 'Voucher.rdf';
    v_format     VARCHAR2(12)    :='Htmlcss';
    Begin
    Web.Show_Document('http://hoitvoltes5:9002/reports/rwservlet?'||v_connect||'&server=ReportsServer_HOITVOLTES5_asin&destype=cache&report='||v_report_name||'&desformat='||v_format||'&companyid='||:voucher.companyid||'&vouno='||:voucher.vouno,'_blank');
    End;

  • When run report from form(6i) on the web,error FRM-921000

    While I was trying to run report from form (6i)on the web,it will give me this error
    message FRM-921000 and hang.
    But when I try to call form using form,I do
    not have the problem.
    May I know ehat is the cause?
    Anybody encounter this before?
    Thanks
    null

    I am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
    Thanks,
    Jenny N.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
    Dear Jenny,
    I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
    RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
    1. Install Oracle Reports Server
    2. For WEB calls of reports use WEB.SHOW_DOCUMENT
    3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
    I hope this will help you.
    Joseph Schwertner
    <HR></BLOCKQUOTE>
    null

  • Running reports from forms on the web

    On forms and reports 6i we used the following code to run reports from forms.
    We need to do the same on 9i forms and reports, we are running into problems.
    Any help will be appreciated.
    PROCEDURE web (inFileName VARCHAR2,
    inRecordGroup RECORDGROUP) IS
    outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
    outReport VARCHAR2(200) := 'report='||inFileName;
    outUserid VARCHAR2(200) :=
    'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
    SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
    outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
    outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
    outCount INTEGER;
    error we are getting.
    FRM-42017:Module name must be specified.

    S Hatch (guest) wrote:
    : I'm thinking that you're going to have to install the Reports
    : cartridge, create an entry in the keymap with any parameters
    and
    : call your report via the url.
    : Dessislava Gantcheva (guest) wrote:
    : : How do I call a report from a form on the web?
    : : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
    EE
    : : with patch 1, Developer 6.0 with patch 1. Developer server
    and
    : : forms server work fine in a non-cartridge implementation,
    but
    : I
    : : cannot run a report within a form. I just have no any info
    how
    : : to do this.
    I have entries in my keymap file and I can call my reports via
    the url, but I cannot run a report WITHIN a form. I mean to call
    a report by clicking on a button of a form on the web. The
    RUN_PRODUCT built-in does not work (at leas it seems like this)
    If any one has expiriense with it, please, give me a hint.
    Thanks
    null

  • How to run report from forms

    hi all,
    i have tried to run report from forms using below codig(got from online help)
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         v_host varchar2(100):= 'localhost';
    v_port varchar2(10);
    v_parameter_string varchar2(4000);
    v_username varchar2(50);
    v_password varchar2(50);
    v_database varchar2(50);
    BEGIN
         repid := find_report_object('REPORT27');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
              message('Report Completed');
              copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
    --     host('MOZILLA E:/Rep/local.pdf');
    -- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
    -- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
              else
         message('Error when running report.');
              end if;
              -- Get the full domain name of the server from the formsweb.cfg
    tool_env.getvar('SERVER_URL',v_host);
    -- Get the username/password and database from the .env file
    tool_env.getvar('APPLICATION_USERNAME',v_username);
    tool_env.getvar('APPLICATION_PASSWORD',v_password);
    tool_env.getvar('APPLICATION_DATABASE',v_database);
    -- If it is localhost then we are running on windows and need to use the windows port, otherwise we
    -- are on AIX and need to use the AIX port
    IF v_host = 'localhost' THEN
         v_port := '8889';
    ELSE
         v_port := '8889';
    END IF;
    -- Now build the parameter string for running the report      
    v_parameter_string := 'server=repserver';
    v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
    v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
    v_parameter_string := v_parameter_string||'&execution_mode=batch';
    v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
    v_parameter_string := v_parameter_string||'&destype=cache';
    v_parameter_string := v_parameter_string||'&desformat=pdf';
    -- Now run the report
    web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
    END;
    REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    but i hav report in e:\ then why its getting?

    Hi,
    I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
    <p>
    from the Online Help
    </p>
    <p>
    On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
    </p>
    <p>
    On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
    </p>
    <p>
    Regards
    JeanYves
    </p>

Maybe you are looking for