Calling reports6 from forms6

Hi i have a form built in forms 6 and using a push button i want to call a report.
Y'r help required.

Hellow priya,
For Run_Product to work independent of the path, by just passing the Report file Name,
try to add You application path to;
Reportxx_Path in registry.
xx: stanbds for version:
Reports 4.5 : xx = 45
Reports 5.0 : xx = 50
Reports 6.0 : xx = 60
Hope this helps.
Regards
Tariq
null

Similar Messages

  • Call report from forms6i, use report server from 10gAS

    Hi there,
    I have been searching for any info I can get that will help me to do the following:
    I want to call an Oracle 6i report from Forms6i but I want to specify a Report Server running on an Oracle10gAS box. Can this be done in a client/server fashion, meaning the forms/reports are on a Citrix box, accessed by many users.
    Everything is working fine, using "RUN_PRODUCT" and the "Report Background Engine" to generate the report on the Citrix box. However, I want to use the report server from 10gAS runinng on another box, to generate these reports.
    Please reply with any help you give.
    Regards
    shak

    Hello,
    You can use the compatible element in the reports server configuration file :
    Description
    The compatible element is available for backward compatibility with Oracle Reports 6i clients (RWCLI60.EXE, RWCGI60.EXE, RWQMU60.EXE, RWRQM60.EXE, RWRQV60.EXE, 6i Forms). When compatible is set to 6i, Reports Server will make use of an executable file named rwproxy that listens for requests from a 6i client and forwards them to a 10g server.
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_conf.htm#i1005999
    Regards

  • Calling DLL from forms6i

    Hi,
    I would like to use the fuctionality of a DLL, developed in VB. How I can call the existing methods of a DLL from forms6i.
    Thanks.....
    Bye
    vhareesh
    null

    Hi,
    I would like to use the fuctionality of a DLL, developed in VB. How I can call the existing methods of a DLL from forms6i.
    Thanks.....
    Bye
    vhareesh
    null

  • Problem ! Calling report6 from forms6(run_product()) using global temporary table.

    Requirement :
    To generate stock movement report for certain selected items.
    Background :
    A Form is created with data block (tmp_item_master - a global temporary table)
    when_new_form_instance :
    inserting into tmp_item_master from item_master and then execute_query on tmp_item_master block.
    User selects certain items using check box provided.
    Now tmp_item_master is updated for ch_select_flag_yn = 'Y' for selected items
    and commit.
    Calling report from form(using run_product()).
    Now the main query in report, is joined with tmp_item_master where ch_select_flag_yn = 'Y'
    Here, we are unable to see the report for any item. As the global temporary table data is not visible in the report session.
    How to resolve this problem ?
    Note : global temporary table created with ON COMMIT PRESERVE ROWS
    Thanking you,
    From praful.
    null

    Hi,
    You are using 'ON Commit Delete Rows' . Instead of Use ' ON COMMIT PRESERVE ROWS'
    The ON COMMIT DELETE ROWS clause indicates that the data should be deleted at the end of the transaction.
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
    column1 NUMBER,
    column2 NUMBER
    ) ON COMMIT DELETE ROWS;
    In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
    column1 NUMBER,
    column2 NUMBER
    ) ON COMMIT PRESERVE ROWS;
    Edited by: Mrucha on Nov 26, 2012 6:06 AM

  • 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

  • Calling Report9i from Form6i

    Hi,
    There is any way to call Reports9i from Forms6i? I have Forms6i+Forms Servser 6i on one machine, and Report9i Server(Service) on another. How can I use Reports9i from Forms6i ? Can it work ?
    Thanks,
    Trung

    Hi,
    It should work the same way as it was with Reports 6i Server. In Reports 9i server config file, to need to make it compatibale with 6i version. You need to uncomment the following line in Reports 9i server configuration file from:
    <!--compatible version="6i"/-->
    to
    <compatible version="6i"/>
    Now start the Reports 9i server again, This will start a seperate listen through which Reports 9i server can talk to any 6i client.Setting version to 6i enables Reports 6i clients to run under Oracle9iAS. When version is set to 6i, versions earlier than 6i may also run under Oracle9iAS, but they are notcertified to do so and are not supported by Oracle. If you use the compatible element, you must also have an entry for the Reports Server in your tnsnames.ora file, as you would have had for the 6i version of the Reports Server. For example:
    testsvr.world = (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=testhost.us.oracle.com)
    (PORT=1949)
    Hope this helps!
    Thanks,
    Rohit

  • Calling Discoverer 3.1 from forms6i?

    Hi,
    Was wanting to invoke a .dis file from Forms 6i, a Discoverer report from Forms6i.
    Any suggestions are greatly appreciated.
    Thanks,
    Aparna.

    it doesn't work because the lookup call does NOT return an instance of MyBean - it returns a proxy object that implements all the methods of its common interface. Hence you program against the business interface, not the implementation bean. Using this way also, you do not need to have the implementation of MyBean in your client's classpath, only the interface.

  • Can I call JSP page from forms6i C/S?

    Hi.
    How can I call JSP page from forms6i Client/Server?
    Flavio.

    What is your problem with a host command? You can use:
    host('c:\program files\internet explorer\iexplore.exe http://server/page.jsp');
    There a disadvantage indeed: you have to close the browser before you can return to the form.

  • Calling HTML file from Forms6i

    Hi,
    I am wanting to invoke a HTML file(residing in the hard disk)from Forms6i.Tried to use web.show_document,gives an forms error as follows
    Frm-92020: Invalid URL C:\....sent to browser with target _self
    Full Details: unknown protocol :c
    Can anyone tell me what the problem is here and how do i rectify this prob?
    Thanks,
    Aparna.
    null

    Hi Aparna
    If ur form is opened thro' a web browser, then ur file should be in a directory path that has a virtual directory mapping in the web server.
    For example, if you want to open a file, say C:\hml\abc.htm, then this path c:\html should have a valid virtual path, say /html/ defined on the web server.
    Then u can use the web.show_document built-in like
    WEB.SHOW_DOCUMENT('http://<hostname>:<port>/html/abc.htm','_blank');
    This will +vely work
    Regards
    APK

  • Calling Report from Menu (Oracle Forms 10g)

    We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
    Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.

    Here is the code to call report from menu in 10g
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
    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,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
                   --Display report in the browser
                   WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

  • How do I dial a phone number from Forms6i ?? OLE2,DDE??

    How do I dial a phone number from Forms6i ?? OLE2,DDE??
    Is it do-able??
    I have a contact form that has the contacts phone number, etc... I would like to add a button to dial the number which would open the phone line (probably through my modem) and dial the number ... where I would pickup the receiver and wait for connection...
    I need an example or a "How to" link or something where if I take the time I can get it working....
    IF not, is there software to do it?
    Thanks, Bill

    Yes, great! I will check into my modem... but I remember years ago have a c program that I used to send error messages through the modem to my alpha-numeric pager. With that I started with that c program being called from REXX IBM language and it spoke modem language...
    Is there another forum that would handle this type of request? what do you call telephone support? telephony? communication links? ....
    Thanks for the input!

  • FRM-40735 with ORA-105100 when calling JavaBean in Forms6i deployed to Web

    We are encountering an ORA_JAVA error during runtime in a new simple form when trying to call an imported JavaBean in Forms 6i.
    It works when in the Forms6i Builder Run Form Client/Server mode on Linux/Motif.
    The specific error is: FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100
    Our form incorporates the following simple example from Metalink Note:131964.1
    How to Create a Simple Java program with the ORA_JAVA Package of Forms?
    We have confirmed that we are downloading our custom JavaDev6i.jar file in the JInitiator console during runtime when deployed on the Forms Server using sockets.
    We have turned on Forms Runtime Diagnostics (FRD), which showed the following
    ORA_JAVA.LAST_ERROR: 121
    when attempting to execute the call to the JavaBean.
    I also ran strace on the forms processes:
    strace -o/tmp/f60srvm_trc.txt -afeT -p 21192 &
    strace -o/tmp/f60webmx_trc.txt -afeT -p 9172 &
    I found libjvm.so could not be found in the LD_LIBRARY_PATH,
    so I changed /d01/oracle/visappl/admin/adovars.env from:
    LD_LIBRARY_PATH=$ORACLE_HOME/network/jre11/lib/i686/native_threads:$ORACLE_HOME/network/jre11/lib/linux/native_threads:${LD_LIBRARY_PATH:=}
    to
    JDK131_HOME=/usr/java/jdk1.3.1_20
    export JDK131_HOME
    LD_LIBRARY_PATH=$JDK131_HOME/lib/i386:$JDK131_HOME/jre/lib/i386:$JDK131_HOME/jre/lib/i386/classic:$JDK131_HOME/jre/lib/i386/native_threads:${LD_LIBRARY_PATH:=}
    This solved that library problem, but it did not fix the original problem of not being able to run a JavaBean in a deployed Form.
    I've provided our environment below from txkMPcheck.sh, but please let me know what else you need to help us with this.
    Technology Validation Utility report for 11.5.9 Maintenance Pack (some info deleted to fit in forum 3.5K limit)
    Script : ./txkMPcheck.sh (115.20)
    Context : /d01/oracle/visappl/admin/VIS_hpbox.xml
    HTTP Server Node (hpbox):
    [PASS] Oracle JInitiator version from the Applications Context file is: 1.1.8.16
    [PASS] JDK version on HTTP server node is: 1.3.1_20
    [PASS] iAS version from the Applications Context file is: ias1022
    [PASS] iAS patchset version from the OUI inventory is: 1.3.19.0.0g
    [PASS] PERL is included in the PATH variable from the APPLSYS.env file.
    [PASS] DISPLAY variable from the Applications Context file is: :0.0
    Forms Server Node (hpbox):
    [PASS] Developer 6i version from f60gen executable is: 6.0.8.21.3
    [PASS] The 806 client library version from the f60gen executable is: 8.0.6.3.0
    [PASS] Checksum of file kpuex.o confirms back port 1227566 has been applied.
    [PASS] DISPLAY variable from the Applications Context file is: :0.0
    Administration Server Node (hpbox):
    [PASS] Database version from dbms_utility is: 9.2.0.3.0
    SUMMARY:
    [ALLPASS] All the technology checks on this node needed for the 11.5.9 Maintenance Pack
    have passed. You may now proceed with next steps in the Oracle
    Applications Release 11.5.9 Maintenance Pack Installation instructions.
    More env info...
    Oracle (Red Hat) Enterprise Linux Rel 4 Upd 6 (uname: 2.6.9-67.0.0.0.1.ELsmp #1 SMP)
    Forms6i Builder 6.0.8.21.3 (Production) (on Linux)
    Already posted this to Metalink forum, but no answer in 1 week.
    Thanks for your help!

    Looks like the CLASSPATH for the server is not set correctly. Does it include the directory where your JAR file resides?
    You say that the JavaDev6i.jar is downloaded the the JInitiator, which surprises me. It looks like you are trying to import/call Java from the server side, which means it is not necessary to load the JAR client side. You only have to include it in the client side JARs if you are using Pluggable Java Components (PJC) which run client side. You are using the Java Importer which creates a PL/SQL wrapper around a server side Java class.
    This might also explain why it does work in client/server mode. Then you might have a different CLASSPATH setup when starting Forms Runtime from within Forms Builder.

  • Call excell from RDF

    Hi
    can anyone help me how to call excell from RDF in reports6i (means i want to call reports in excel format)
    Thank you
    Kamaraj
    Edited by: user615671 on Jan 28, 2009 8:12 PM

    Hi,
    Google "concsub"
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Call excel from report6i

    Hi
    Is there anyway to call excell from Reports6i.if it is please tell me how
    Thnks
    Kamaraj

    Of course it can be done!!!!
    The way to do it is using OLE2 Built In Package.
    This is the way of call Word from Forms, but it also works for Report and Excel.
    HOW TO - Performing OLE on the client using WebUtil
    Introduction
    Many Forms applications utilize OLE to perform tight integration with the Windows desktop. However, when moving your Forms application to the Web, the calls to OLE are now running on the application server and not the client machine.
    Typically you need OLE to access the machine at which the user is sitting and integrate with the OLE services on the client. For example, loading data into an Excel worksheet and display for the user.
    WebUtil provides you the functionality to perform client side OLE integration from within the Forms Java applet.
    Set up
    For the steps to set up WebUtil, please refer to the WebUtil Familiarization Manual available as part of the software download.
    Changing code
    Consider the following code:
    DECLARE
    app OLE2.OBJ_TYPE;
    docs OLE2.OBJ_TYPE;
    doc OLE2.OBJ_TYPE;
    selection OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := OLE2.CREATE_OBJ('Word.Application');
    OLE2.SET_PROPERTY(app,'Visible',1);
    docs := OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := OLE2.INVOKE_OBJ(docs, 'add');
    selection := OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    OLE2.SET_PROPERTY(selection, 'Text', :long_item);
    -- save document as example.doc
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'c:\temp\example.doc');
    OLE2.INVOKE(doc, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 0);
    OLE2.INVOKE(doc, 'Close', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(selection);
    OLE2.RELEASE_OBJ(doc);
    OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
    OLE2.INVOKE(app,'Quit');
    END;
    This code opens a Word document to the user and inserts data from a Forms text field into that Word document before saving and closing the file. To perform the same functionality, but on the client side when deployed on the Web, attach the WebUtil object library and PL/SQL library, and replace any instance of OLE2 with CLIENT_OLE2.
    The resulting code will now work, as before, but write the file to the client machine.
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :long_item);
    -- save document as example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
    CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
    CLIENT_OLE2.INVOKE(app,'Quit');
    END;

  • 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

Maybe you are looking for

  • Oracle client 32/64 bit on Crystal Server 2013 and Windows Server 2012

    I'm getting the error "Unknown Database Connector Error" when I run report on the server and it works OK on crystal designer 2013. Been reading this thread 32&64 bit Oracle Client but not much help there. Here are the  details System Windows Server 2

  • IPhone isn't recognized by iTunes; won't charge via USB

    I recently switched a friend to Mac/iPhone and things haven't been very smooth, unfortunately. His MacBook video card appears to be faulty (the screen appears to "breath") and now his iPhone has stopped connecting to the Mac. I'd say that Apple's har

  • In Photoshop Elements 12 eigener Ortner Löschen

    Guten Abend Kann mir jemand sagen, wie ich bei Photoshop Elements 12 bei Eigene Ortner ein solchen löschen kann. Damit die Fotos da drauf verschwinden.  Lg Speedpic

  • How to make ECC as central alert server, and XI as child alert server?

    Hi All I have a requirement where, i need to raise alerts in XI message processing, and also during message processing in application system (ECC system). Now, how can i make ECC as central alert serer & XI as child alert server? We are not using CCM

  • ICould with 10.6.8

    In looking at Apple's material for the move from Mobile Me to iCloud it is not clear to me if I can do that when on 10.6.8 with my iMac and MBP. Is that the case?  I have no desire to upgrade to 10.7 now since I still  have to replace a couple of pro