Calling report from form. Need PDF output

I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
Thanks

Thanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
win_api_environment.read_registry must be declared. Is there some package I need to attach?
Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
Thanks
The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
IS
vcServerApp varchar2(40);
vcServerTag varchar2(600);
vcCommand varchar2(2000);
iArgPos pls_integer;
dummy NUMBER;
BEGIN
-- 1 get the Server App for .PDF files
vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
-- 2 get the executable
vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
vcServerApp||'\SHELL\OPEN\COMMAND';
vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
-- 3 Sort out how to specify the Filename
iArgPos:= instr(vcCommand,'%1');
if iArgPos = 0 then --no substitution Var on the command line
vcCommand := vcCommand||' '||vFile;
else
vcCommand := substr(vcCommand,1,(iArgPos-1))||
vFile||substr(vcCommand,(iArgPos+2));
end if;
-- 4 Run using Winexec (or Host if preferred).
win_api_shell.winexec(vcCommand);
EXCEPTION
when no_data_found then
abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
END;
Chad
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
Thanks

Similar Messages

  • Calling report from forms :- need to disable file menu in report previewer

    Hi all,
    I am using report 6i and forms 6i
    I am invoking report from forms
    if report_status='N' then I want to disable the file menu in report previewer
    Is it possible to disable and enable file menu in report previewer
    Please help
    Thanks
    :8}

    i got way

  • Calling Report from Form Error ORA-06508

    Dear all,
    I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
    Folder Form = C:\APLIORA\IRS\FORM
    Folder Report = C:\APLIORA\IRS\REPORT
    I have modified file DEFAULT.ENV
    FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
    i do not have problem call a form from form.
    but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
    my procedure is
    PROCEDURE Call_Report IS
         list_id ParamList;
    BEGIN
    list_id := Get_Parameter_List('input_params');
    IF NOT Id_Null(list_id) THEN
    Destroy_Parameter_List(list_id);
    END IF;
    list_id := Create_Parameter_List('input_params');
    Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
    Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
    RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
    END ;
    Do I miss something ?
    Can any one help ?
    Thanks

    Hi,
    Thank you for your replay.
    The problem have solved.
    This my step :
    1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
    2. Install Jinit version 1.3.1.28.
    3. Create report server
    3. Compile form, report and pll
    4. call report from from with this procedure :
    PROCEDURE Call_Report (vFILENAME varchar2) IS
    report_id                Report_Object;
    ReportServerJob VARCHAR2(100);
    vc_rep_status      VARCHAR2(100);
    repsvr                          varchar2(21) := 'myserv';
    userid                         VARCHAR2(100);
    pass                          VARCHAR2(100);
    Host                    VARCHAR2(100);
    BEGIN
    userid          := Get_Application_Property(USERNAME) ;
    pass          := Get_Application_Property(PASSWORD) ;
    Host          := Get_Application_Property(CONNECT_STRING) ;
    report_id:= find_report_object('REPORT');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
    ReportServerJob:=run_report_object(report_id);
    vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
    LOOP
    vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
    END LOOP;
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF&paramform=yes','_blank');
    ELSE
    message ('Report failed with error message '|| vc_rep_status);
    END IF;
    END;
    Ok, but i have another strange error. I will post new thread.
    Thank you and regards
    Teguh S

  • Calling Report From Form To Many Destinations

    Hi
    I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
    I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
    I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?

    what about adding a drop-down-list near your report-button where you can choose the destination?
    when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too.

  • REP 110 & REP 0110 .calling reports from Form 10g(10.1.2.0.2)

    Hi All,
    We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
    using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
    But when we try to run reports from Forms 10g it throws error which is given below.
    We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
    URL
    http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
    ERROR
    REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
    REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
    I will really appreciate your help.
    Thanks
    Sandy

    Hello,
    You are mixing 2 separators in the URL : & and +
    Use only one separator in the URL :
    Example :
    http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
    Regards

  • Calling reports from forms...i have 10 days left to find a solution please!

    here is the scenario
    i connect to a oracle 9i server from home. i use winxp and 9i Developer to create database applications. when i need to run forms i have to start an OCJ4 Instance, i have a problem though....
    i need to run a report from a form and have tried the following methods:
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
    BEGIN
    repid := find_report_object('rptRequest');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
    v_rep := RUN_REPORT_OBJECT(repid);*/
    END;
    this results in REP-0503 "You did not specify the name of a report"
    i have also tried:
    WEB.SHOW_DOCUMENT('http://localhost:8888/reports/server=repSRV&report=rptRequest.rdf&desformat=pdf&userid=user/pass@ORASERV&paramform=no');
    but this display page cannot be found.
    Where is the report server i should be pointing to?
    thanks for your help

    Michael,
    the default Reports Services is started by a request to the Reports Servlet "rwservlet". To run Reports from Forms I suggest to install the Reports Services as a separate process that can be controlled by a Windows Service
    iDS Home\bin rwserver -install <Reports Services name you want to use>
    This creates a Windows Service for you that starts/stope the Reports Server. In Forms you use set_report_object_property() built-in to set the Repors services name to teh one specifie when installing the Reports Services process. Alternatively you can set the name in teh Report node property palette.
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
    This is not a valid option when running a report on Reports Services. Try destype CACHE and set the desformat to either HTML, HTMLCSS or PDF.
    Read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf and 10 days no longer should be a problem.
    Frank

  • Getting rep-3002 when calling report from form on web

    i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.

    Hello,
    If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Calling report from form in Web environment

    Hi,
    We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
    a) Is there any other way to call report from a form other than web.show_document?
    b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
    Any reply would be appreciated..Thanks

    1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
    2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
    Darshan Desai
    [email protected]
    null

  • Call report from form 10g (10.1.2.0.2)

    hi
    i using win 2003 and db 10g and dev10g ( 10.1.2.0.2)
    and i want to call report from my form as following code :
    DECLARE
    dir varchar2(200);
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    dir:=co$win.get_current_directory ;
    repid := find_report_object('CGNV$OFG_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,dir||'\rep.jsp');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,runtime);
    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,'rws');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
    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' --or rep_status is null
    THEN
    WEB.SHOW_DOCUMENT('http://hamid:8889/reports/rwservlet/getjobid'||
    substr(v_rep, instr(v_rep,'_',-1)+1)||'?server=rws','_blank');
    ELSE
    message(ER_RP);
    END IF;
    END;
    but i get error :
    frm-41213: unable to connect to the report server rws
    plz help me

    hi
    i using win 2003 and db 10g and dev10g ( 10.1.2.0.2)
    and i want to call report from my form as following code :
    DECLARE
    dir varchar2(200);
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    dir:=co$win.get_current_directory ;
    repid := find_report_object('CGNV$OFG_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,dir||'\rep.jsp');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,runtime);
    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,'rws');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
    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' --or rep_status is null
    THEN
    WEB.SHOW_DOCUMENT('http://hamid:8889/reports/rwservlet/getjobid'||
    substr(v_rep, instr(v_rep,'_',-1)+1)||'?server=rws','_blank');
    ELSE
    message(ER_RP);
    END IF;
    END;
    but i get error :
    frm-41213: unable to connect to the report server rws
    plz help me

  • FRM-41219 - Cannot able to call reports from form generated in Designer

    Hi
    I'm trying to call a report from form whit a button generated in Designer 10.1.2.0.2
    But I'm getting error : FRM-41219 Invalid report id
    I'm tying with a menu but I'm getting the same error.
    Please help me

    Note 1056653.6
    FRM-41219 Cannot Find Report: Invalid ID
    Problem Description:
    You are getting error: FRM-41219 Cannot Find Report: Invalid ID
    Problem Explanation:
    The code is using find_report_object and passing a report name to the function.
    The statements are as follows:
    DECLARE
    repid REPORT_OBJECT;
    BEGIN
    repid := FIND_REPORT_OBJECT('report1');
    END;
    Solution Explanation:
    The error message frm-41219 is a new error code which corresponds to the
    Oracle Developer forms/report integration.
    This message essentially means that the report cannot be found. Specifying the
    correct name of a report object found in the forms object navigator (not the
    actual name of the rdf file) usually resolves the problem.

  • Parameter form display while calling reports from form

    Dear All,
    I am running reports from form using run_report_object. I do not want to see parameter form while running the report. How do I do that.
    Thanks in Advance
    Gaurav Shah

    Hi, try to set paramform=NO in your parameter list
    Daniel

  • PDF reports and forms11g, Weblogic, call report from form, parameters

    Hi All.
    I had difficulty to put to work reports 11g on pdf format. this is how I solve it.
    I hope help any of you and also anyoe can correct me if Im wrong.
    1. I have installed an configured the weblogic server 10.3.3, also Forms, Reports, Portal, Discoverer 11.1.1.3.0 and database 11.2
    2. I re-compiled my forms and reports 10gR2 on 11g, also the pll libraries.
    3. This is how I call the report from my form, I add parameters to a parameter list called PL then invoke the rp2rro prucedure that is located at rp2rrp.pl library:
    PL := create_parameter_list(TDATA);
    add_parameter(PL,'PARAMFORM',TEXT_PARAMETER,'NO');
    add_parameter(PL,'ORIENTATION',TEXT_PARAMETER,'PORTRAIT');
    add_parameter(PL,'EMPRESA',TEXT_PARAMETER,:GLOBAL.COMPANY);
    add_parameter(PL,'NB_EMPRESA',TEXT_PARAMETER,:GLOBAL.COMPANYNAME);
    add_parameter(PL,'DESFORMAT',TEXT_PARAMETER,:CG$CTRL.DESFORMAT);
    rp2rro.SETREPORTSSERVER(:GLOBAL.REPORTSERVER);
    add_parameter(PL,'SESION',TEXT_PARAMETER,TO_CHAR(SESION));
    Add_Parameter(pl, 'DESTYPE', TEXT_PARAMETER, 'SCREEN');
    rp2rro.rp2rro_run_product(REPORTS, :CG$CTRL.REPORT_TYPE, SYNCHRONOUS, RUNTIME, FILESYSTEM, PL, NULL);
    destroy_parameter_list(PL);
    4. when pr2rro gets the parameter list (PL) did not find the Desformat parameter that I sent from the form. so I edit the pr2rro.pll library. this is the zone of the code edited:
    (just added the number var "Desfn" that the get_parameter_attr() will need above.
    PACKAGE BODY rp2rro IS
         /* Package variables */
    rp2rroDesformat varchar2(30);
         rp2rroDesname varchar2(200);
         rp2rroDestype varchar2(30);
         rp2rroReportOther varchar2(2000):='';
    rp2rroComm_mode number := Synchronous;     
         rp2rroReportServer varchar2(100);
         rp2rroVirtualDir          varchar2(100);
    rp2rroReportsInterface varchar2(30);
    /* this line by ingenio*/
         Desfn                    number;     
    5. a couple of lines above, you can find this:
    (here I added get_parameter_attr(mparamlist_id,'DESFORMAT',Desfn,rp2rroDesformat); to asign the value of the parameter called Desformat to the rp2rroDesformat var)
    PROCEDURE rp2rro_run_product(product NUMBER,reportFile VARCHAR2,commMode NUMBER,engine NUMBER,fileLocation NUMBER,mparamlist_id ParamList,display VARCHAR2) IS
    BEGIN
         /* Handle only calls to Reports */
         /* this line by ingenio*/      
    get_parameter_attr(mparamlist_id,'DESFORMAT',Desfn,rp2rroDesformat);           
              IF product = REPORTS THEN     
              Handle_rp2rro_run_product(product, reportFile,commMode,engine,fileLocation,mparamlist_id);
              END IF;
    END;
    Its now working fine with PDF, RTF, HTML, Delimited formats, Not with EXCEL(spreadsheet) Im working in that.
    I accept any help.
    Thanlks
    Edited by: Ingenio on Nov 29, 2011 2:44 PM

    I solved my problem editing the rp2rro.pll library,I debugged the library and I found the format sent by forms was missing, so I catch it and set it directly:
    GET_PARAMETER_ATTR(mparamlist_id, 'DESFORMAT',vnumb,vvalue);
                   setDesformat (vvalue);

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    pl_id := Get_Parameter_List(’tmpdata’);
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the ’tmpdata’ parameter list afresh.
    pl_id := Create_Parameter_List(’tmpdata’);
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, ’PARAMFORM’, TEXT_PARAMETER, ’NO’);
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • Calling Reports From Forms

    Hello,
    i'm trying to call a Report from a Form but i'm getting the error:
    <b>Cannot Get Output of Job ID 91 you requested on Mon Feb 03 14:00:03 BRT 2003.
    REP-56033: Job 91 does not exist<b/>
    I'm using Reports Server 9i (9.0.2.3) and Forms Server 6i.
    The PL/SQL to call the report is something like the following:
    <b>declare
    v_rep_id Report_Object;
    v_rep_job_id Varchar2(200);
    v_rep_status Varchar2(200);
    begin
         v_rep_id := Find_Report_Object('RPT_GENERICO');
         Set_Report_Object_Property(v_rep_id, REPORT_FILENAME, 'plscvnd0013rpt');
         v_rep_job_id := Run_Report_Object(v_rep_id, pLista_ID);
         v_rep_status := Report_Object_Status(v_rep_job_id);
         while v_rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
         loop
              v_rep_status := Report_Object_Status(v_rep_job_id);
         end loop;
         if v_rep_status = 'FINISHED' then
              Web.Show_Document('http://reports.caarj.com.br:7779/reports/rwservlet/getjobid' ||
                                                 substr(v_rep_job_id, 18) || '?server=Rep.caarj.com.br');
    end if;
    end;
    end if;
    Destroy_Parameter_List(pLista_ID);
    end;</b>
    I've already commented out the <security> section, and uncommented the <compatible version="6i"> in <reports_server>.conf file. The rwproxy service is up and running on port 1949 and i'm using SIGLE_SIGN_ON=NO in rwservlet.properties file.
    What could be wrong??
    Regards,
    Marcus Santos.

    Jermima,
    To call Reports9i from Forms6i it needs to be configured for backward compatibility. this means that your Reports9i server must run as if it was a 6i server.
    The following is from an unpublished paper I wrote on this topic:
    Using Reports9i with Forms 6i
    ====================================================
    To be able to call Reports9i Services from a Forms6i client, an extra Reports server process must be created. Oracle9iAS Reports Services knows of two kinds of Reports Server processes. The in-process server is started the first time that a Reports is requested from the Web by
    the Reports Servlet rwservlet. This Reports Server process cannot be used with Forms using Run_Report_Object and therefore a separate Reports Server process must be started prior to using it.
    This can be done by issuing he following command from the Oracle9iAS/bin directory rwserver <servername> batch=yes & (UNIX)or rwserver -install <service name> (WINDOWS)In both cases, the first time that the Reports Server starts, a Reports configuration file <servername>.conf (UNIX) or <service_name>.conf (WINDOWS) is created in the Oracle9iAS/reports/conf directory.
    To use Reports9i Services form a Forms6i client, this file needs some editing:
    The Reports Sevices configuration file gets created with the first start of the Oracle9iAS Reports Services. The configuration settings in this file determine the runtime behavior of the Reports Services.
    Two changes need to be applied to this file to make Oracle9iAs Services work with Forms6i client-server applications. Make sure that the Reports Services process was stopped before opening the Reports Services configuration file, located in the Oracle9iAS/reports/conf directory, with a text editor. The Reports Services configuration file name does apply to the following naming convention.
    Separate server process
    <ServiceName>.conf
    <server>
    [1] <!--compatible version="6i"/-->
    <cache class="oracle.reports.cache.RWCache">
    <property name="cacheSize" value="50"/>
    <!--property name="cacheDir" value="your cache directory"/-->
    <!--property name="maxCacheFileNumber" value="max number of files"/-->
    </cache>
    [2] <security id="rwSec" class="oracle.reports.server.RWSecurity">
    <property name="securityUserid" value="tyKAUY845QDO/2vyaGbQw …" confidential="yes" encrypted="yes"/>
    </security>
    </server>
    Change the following entries in the Reports Services configuration file for the Oracle9iAS Reports Services to accept requests from Forms 6i
    clients.
    [1] Uncomment this line to make Reports9i Services run in 6i compatibility mode. After uncommenting this line it should look similar to this
    <compatible version="6i"/>
    [2] Remove the <security> </security> tag pair and their included content. This effectively disables the Reports Services access control,
    which by default requires a system authentication to be provided by the user to before running a report.
    If later you want to recover access control, then all you need to do is to stop the Reports Services, delete the configuration file and start it up
    again. This leads to a new configuration file being created. Repeat step [1].
    Configure the tnsnames.ora file on the client and the server
    For the Forms6i client server application and the Oracle9i Reports Server to know each other, the tnsnames.ora file needs to be edited on
    both sides. The tnsnames.ora file to use is located in the Forms6i_Home/net80/admin directory on the client and the
    Oracle9iAS/network/admin directory on the server. Add the following entry to both files:
    <report_server_name>.<domain>=
    (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=<hostname of the Reports Server installation>)
    (PORT=1950)
    The following entry is an example for a Reports Server with the name RepSRV in a “world� domain. Note that the port number of the Reports
    Services is defaulted to 1950.
    RepSRV.world=
    (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=<fnimphiu-lap.de.oacle.com)
    (PORT=1950)
    Rwservlet configuration file
    =============================
    Calling Oracle9iAS Reports Services from a Browser URL* accesse the reports servlet first, which then routes the request to the server
    engine, The Reports servlet rwservlet is configured by a file named rwservlet.properties, located in the Oracle9iAS/reports/conf directory.
    Open this file with a text editor and uncomment the following line by remiving the ‘#’ character in front of it.
    # SINGLESIGNON=YES
    Change the value of this varible to No, so that the whole entry reads
    SINGLESIGNON=NO.
    Restart the Oracle9i Application Server, restarting the Oracle process monitor service (OPM), for the changes to take effect.
    From now on the Reports Services does not require users to provide their single sign-on login password when retrieving the Report output
    from the Web, which is one option of getting a Report back to the client.
    * Note that you call the Servlet for retrieving the Reports output through web.show_document

  • When calling report from forms, only html format report can show chinese characters

    To all experts,
    When I run report by calling run_report_object() in forms, only html format can show chinese characters. If I choose pdf format, garbage characters were shown instead of chinese characters. My settings on server are as follows:
    NLS_LANG=TRADITIONAL CHINESE_HONG KONG.UTF8
    FORMS60_REPFORMAT=PDF
    Do you know why? I hope to print report in PDF format as PDF turned out to be more regular in format. Is there any additional settings required?
    May experts here broaden my mind?
    Richard

    You have two different ways of generating Japanese PDF files from Reoprts. One is font aliasing and the other is font subsetting.
    <font aliasing>
    You will need to have the following entries in uiprint.txt (example).
    [ PDF ]
    .....JA16SJIS = "KozMinPro-Regular-Acro"
    "MS UI Gothic".....JA16SJIS = "KozMinPro-Regular-Acro"
    You may need to download and install Japanese Font Pack from Adobe's web site (if your Acrobat is non-Japanese version).
    <font subsetting>
    You will need to add C:\WINNT\Fonts (or wherever your TTF/TTC fonts are installed) to your REPORTS_PATH.
    You will also need to have the following entries in uiprint.txt (example).
    [ PDF:Subset ]
    "Andale Duospace WT J" = "Aduoj.ttf"
    "Albany WT J"="AlbanWTJ.ttf"
    "MS UI Gothic" = "msgothic.ttc"

Maybe you are looking for

  • Error #: 409 : constant expression required at line 342

    hi all, switch( nodeClicked.hashCode() ) { case "Devices".hashCode(): showPanel_Devices(); break; case "Clusters".hashCode(): showPanel_Clusters(); break; case "General".hashCode(): showPanel_General(); scan.nas.executeNTP(scan.getIPFromHash(parentNU

  • Create Server-side WebService un an ADF Fusion-Web application

    Hello, I have a Fusion Web application with a model having several entities / VOs. I saw in the Application Module options that I can expose some of the methods as a Web Service. Since I may need to use this model in a remote way (from another applic

  • Not playing videos at all.

    Something has happened to my Z1 where I can no longer play videos through any option at all. I can't play videos on YouTube, Facebook, or even pre-loaded videos on my phone. Is there are reset somewhere I can try? Thanks.

  • "extension cannot be installed because licensing verification failed"

    Hi everyone,      I have the Adobe Photography plan for Photoshop CC, and it works perfectly fine, it will open and close normally, but when i try to install an extension, it will give me this error message: "extension cannot be installed because lic

  • Bland photos printed from Aperure 3 but jpegs OK from Preview ?????

    HI Probably a common question but I have already wasted half a day websurfing, and reading books to find an answer with no luck so here is my situation .. I am an amateur and don't need accurate colour reproduction juts the ability the print what I s