Launching report from Swing app

How do you launch a report froma Java Swing app and how does the report get viewed and then saved?
Thanks.

hello,
there are several ways of running a report.
a) by executing rwrun
b) by submitting an HTTP request to the reports server
c) by executing rwcli to submit a request to the reports server
the output has to be viewed using either a browser window.
regards,
the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Accessing Discoverer Reports from Oracle Apps

    Hi all,
    Requirement: Accessing Discoverer Reports from Oracle Apps
    Discoverer: 11g
    Oracle Apps: 12i
    When I am trying to access the Discoverer Reports from Oracle apps, again it is asking for Oracle Apps Login details. Can we have any other option that can directly connect to the viewer without any intermission. Please its urgent requirement.
    ThanQ,
    ABR

    Hi Arun,
    When I am trying to access the Discoverer Reports from Oracle apps, again it is asking for Oracle Apps Login details. Can we have any other option that can directly connect to the viewer without any intermission. Please its urgent requirement.Pl refer section *6.4. Set Applications profile options in Oracle E-Business Suite* from MOS tech note
    *Using Discoverer 11.1.1 with Oracle E-Business Suite Release 12 [ID 1074326.1]* and make sure that all profile options are set to a valid value.
    thanks,
    X A H E E R

  • How do I launch report from menu using RUN_REPORT_OBJECT?

    Hi all,
    Re: How do I launch report from menu (and have it print to the screen) using RUN_REPORT_OBJECT?
    I am using Oracle 9iAS on Windows 2000 and I have a similar problem with launching reports from the menu. The application should call the report via the RUN_REPORT_OBJECT builtin feature from Forms. The report is never displayed.
    The report is in the same folder as the menu form calling it. Do the reports have to be in a specific format? How do I get the report_id?
    The name of the report is seconds_calls. No user-specified parameters are passed. Also, the report object in the object navigator in Forms is Report4 (is this relevant?)
    When I try to run report via the form using this code:
    DECLARE
         report_id REPORT_OBJECT;
         rep_status VARCHAR2(200);
         v_rep VARCHAR2(100);          
         report_job_id VARCHAR2(200);
    --     job_number NUMBER;
    --     server_name VARCHAR2(200) := 'repserver';
    BEGIN
         report_id:= FIND_REPORT_OBJECT('seconds_calls');
         rep_status:=REPORT_OBJECT_STATUS(report_job_id);
         v_rep := RUN_REPORT_OBJECT(report_id);
    END;
    I get this error message:
    FRM-41219 Cannot find report:Invalid ID
    And this message
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    When I tried to use the same code (above), substituting the object name for the form name,
    I got these messages:
    FRM-41219 Cannot find report:Invalid ID
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    And FRM-10259 Invalid null argument to packaged procedure or function (???)
    Any ideas?
    Cheers,
    Pippa

    Philippy,
    substr(v_rep,instr(v_rep,'_',-1)+1)
    This code extracts the Reports job id from the Reports Server name. The run_report_object() built-in
    retrieves e.g. RepServ_9 as a job id, but in Reports9i you only need the '9' as a value to retrieve the
    output.
    Use the following sample a template. It is a procedure that expects the reports object name, teh reports server name and the
    output format as an argument. The call to Web.show_document expects the ReportsSrevices to be accessible from teh same server
    (relative addressing is used)
    PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportobj Varchar2, vc_reportserver varchar2, vc_runformat varchar2) IS
    v_report_id           Report_Object;
    vc_ReportServerJob      VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status      VARCHAR2(100); /* status of the Report job */
    vjob_id               VARCHAR2(100); /* job_id as number only string*
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportobj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    /* Define the Report output format and the name of the Reports Server as well as a user-defined parameter, passing the department number from Forms to the Report. We don't need a parameter form to be displayed, and therefore paramform is set to "no". */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, vc_runformat);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, vc_reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,      'p_deptno='||:dept.deptno||'paramform=no');
    vc_ReportServerJob:=RUN_REPORT_OBJECT(report_id);
    /* remove the Reports Server name from teh job id */
    vjob_id := substr(vc_ReportServerJob,length(reportserver)+2,length(vc_ReportServerJob));
    /* Check the report status if finished. */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Report output to be displayed in a separate browser window.
    The URL for relative addressing is only valid when the Reports Server
    is on the same host as the Forms Server. For accessing a Remote Reports
    Server on a different machine, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid '||vjob_id ||'?server='vc_reportserver,'_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    Frank

  • How to Call Crystal Reports from Swing Application

    Hi All,
    I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
    Thanks in advance.
    Chandra

    hi
    this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
        import java.awt.*;
        import javax.swing.*;
        import com.crystaldecisions.ReportViewer.*;
        import com.crystaldecisions.reports.sdk.*;
        import com.crystaldecisions.sdk.occa.report.reportsource.*;
       public class HelloSwing
            public static void createAndShowGUI()
                try
                    //Make sure we have nice window decorations.
                    JFrame.setDefaultLookAndFeelDecorated(true);
                    //Create and set up the window.
                    JFrame frame = new JFrame("HelloWorldSwing");
                    frame.setTitle( "Testing Reports");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   ReportViewerBean viewer = new ReportViewerBean();
                    viewer.init( new String[0], null, null, null);
                  ReportClientDocument rpt = new ReportClientDocument();
                    rpt.open( "report path", 1 );
                    IReportSource rptSource = rpt.getReportSource();
                    viewer.setReportSource( rptSource );
                    frame.getContentPane().add( viewer, BorderLayout.CENTER );
                    frame.setSize( 700, 500 );
                    frame.setVisible(true);
                    viewer.start();
                catch ( Exception exception )
                    System.out.println( exception.toString() );
            public static void main(String[] args)
                javax.swing.SwingUtilities.invokeLater(new Runnable()
                    public void run()
                        createAndShowGUI();
       there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
    specify the key in the CRConfig.xml file (which also has to be imported in the package)
    u can find these jar files in the common objects folder in your program files.
    hope it helps. best of luck

  • While running the report from oracle apps

    Hi,
    While running the report from oracle apps i am getting the below error.
    First time when i ran it it works fine in the second time it is giving the below error like
    MSG-00001: After SRWINIT
    MSG-01000: Label sets failed
    MSG-01000: ORA-06502: PL/SQL: numeric or value error
    REP-1419: 'beforereport': PL/SQL program aborted
    Can anyone please give your kind advice on it.
    Thanks
    Surya...

    what is the application version ?
    is it seeded report ? or customized
    regards

  • Launching JavaFX from Swing as a popup

    We are trying to replace one of our JDialogs in an old Java Swing App with a JavaFX Screen as a proof of concept.
    I went the Interface route and got the JavaFX Screen to pop open from the swing app, but when i close the JavaFX window it kills the Swing App that launched it.
    Any solutions to this?
    Edited by: jmandawg on Jun 22, 2010 8:53 AM

    Is there a way to make the "x" button on a JavaFX desktop window call stage.close() instead of fx.exit() ?

  • Launching Browser from Swing Applicaton....

    Hi,
    i am launching browser from my swing application.While opening HTML file, always the HTML file goes behind the application.Everytime i have to maximize the html file window.
    i want the HTML file to come up in front of the swing application.
    any help please ??? itz very urgent.....
    Thanks in advance.
    Manikandan

    Browser Utility - Class to launch a URL in a web browser in
    a platform independent manner. Includes an optional swing
    GUI allowing user customization. [Open Source - GPL]
    http://ostermiller.org/utils/Browser.html
    BrowserLauncher - Open the system web browser with
    particular attention paid to various Macintosh systems.
    (Freeware)
    http://browserlauncher.sourceforge.net/
    Java World - With a little platform-specific Java code, you
    can easily use your system's default browser to display any
    URL in Windows or Unix.
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
    JConfig - Class Libraries that allow a URL to be launched in
    a browser on Windows, Unix, or Macintosh. [Commercial]
    http://www.tolstoy.com/samizdat/jconfig.html
    Apple - MRJFileUtils.openURL() not implemented in Mac OS X.
    http://developer.apple.com/techpubs/macosx/ReleaseNotes/JavaGMWebReleaseNotes.html#MRJToolkit
    Apple - How one would open a URL in a web browser on a
    Macintosh.
    http://developer.apple.com/qa/java/java12.html

  • Launching reports from HTMLDB

    Hi all,
    We have reports 6 executeables. We want to launch them from HTMLDB. I "discovered" dbms_scheduler and tried launching them via PL/SQL. However, that is not entirely reliable, since the job intermittently errors out with "file not found".
    Is there another way to launch an executable? Or if we migrate to the latest version of reports, can they be launched from HTMLDB?
    Please advise,
    Johan Arve

    "Why doesn't it work with Reports 6i?"
    I'm running four different reports via a PL/SQL package that calls dbms_scheduler. One of these reports bug out on a regular basis iff the other three have just been run.
    "How Do you call the reports with the dbms_scheduler?"
    I've defined them as jobs and run dbms_scheduler.enable via PL/SQL package called by a HTMLDB process.
    "If you can start a report via url in the browser, you can call it from pl/sql with utl_http."
    OK, how do I start a .rep file via a url?
    Thanks for your input.
    Best regards,
    Johan Arve

  • Launching report from button in forms

    I have a report with a user input parameter that i need to launch from a button within oracle forms,
    inputting the url does not display the report because of the perameter is there another way? ive looked into the built ins but they seem overly complicated for what i am trying to achieve as in theory it should be quite simple just to launch the report in the web browser (all of this is client side one machine holding all reports and forms)
    really desperate as this has a deadline of tomorrow!!

    I have searched and i couldnt find anything specifically to do with client side and perameters, i know how to do it via web browser and the listener etc but with a parameter this does not work.
    i literally need to run the web version of the report as in reports builder does through a button
    if you know of a thread please point me there thanks!!

  • Launching Browser From Swing Application - Help Needed

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.
    I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.
    I want to open it in front of the Swing Application.
    Any Help Please ?
    - Manikandan

    Browser Utility - Class to launch a URL in a web browser in
    a platform independent manner. Includes an optional swing
    GUI allowing user customization. [Open Source - GPL]
    http://ostermiller.org/utils/Browser.html
    BrowserLauncher - Open the system web browser with
    particular attention paid to various Macintosh systems.
    (Freeware)
    http://browserlauncher.sourceforge.net/
    Java World - With a little platform-specific Java code, you
    can easily use your system's default browser to display any
    URL in Windows or Unix.
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
    JConfig - Class Libraries that allow a URL to be launched in
    a browser on Windows, Unix, or Macintosh. [Commercial]
    http://www.tolstoy.com/samizdat/jconfig.html
    Apple - MRJFileUtils.openURL() not implemented in Mac OS X.
    http://developer.apple.com/techpubs/macosx/ReleaseNotes/JavaGMWebReleaseNotes.html#MRJToolkit
    Apple - How one would open a URL in a web browser on a
    Macintosh.
    http://developer.apple.com/qa/java/java12.html

  • How can I print directly print a report from another app?

    Hi, Can I print a report (printer schedule immediate) passing parameters from another application? Like a html page!
    Thanks a lot. R.

    I can't use the url (for example):
    http://HOST:9704/xmlpserver/servlet/scheduler?ujobname=test_print.xdo&d_printerd_p_gname0=direct&show_conf_page=true&d_method0=d_printer0&job_locale=it_IT&save_output=off&mode=schedule&save_data=off&ujobdesc=test_print.xdo&stype=simple_immediate&_xschurl=_xpt%3D%26WebDoc_Id_Page_Id%3D34132_233%26_xdo%3D%2Ftest_print%2Ftest_print.xdo%26_xpf%3D%26Store_Timezone%3DEurope%2FRome%26_xf%3Dpdf&report_url=%2Ftest_print%2Ftest_print.xdo&submitted=true&d_printerd_p_name0=bridgept1&d_printerd_copy0=1
    ?

  • Not able to print PDF report from Oracle APPS

    adcmctl.sh version 115.17.
    We have a network printer HP Laserjet 4250 which is configured on our concurrent manager server of RH Linux OS. We are using HP LASERJET 4250 Postscript driver. We are able to print PDF's directly however through CC manager we are not able to print reports in Proper PDF format. Has anyone faced such an issue with Oracle Apps?

    user11996936 wrote:
    Has anyone faced such an issue with Oracle Apps?Maybe. Maybe not. Ask to the proper forum. Here you are in Peoplesoft forum.
    Nicolas.

  • How to get acknowlgmnt from EFT (debt card swap) machine from swing app.

    Hi,
    Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.
    I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.
    I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......

    Vish_1x1 wrote:
    Hi,
    Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.What do you mean by "acknowledgement"? You realise it needs some sort of authorising host in order to authorise, right?
    I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.Mumbo-jumbo
    I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......Where did you get this "EFT machine" (whatever that is)? Do you mean a card reader? An EMV terminal? A PDQ? What? Where did it come from? Start there. If you need to get this thing working, you must be part of an enterprise, which has access to resources such as hardware vendor support, merchant banking services and EFT software vendors. If you're not, then you might as well abandon all hope of using this machine to take cards on your own, because you can't. End of story
    And, no, nothing to do with Java

  • How To Launch Servlet from Desktop App

    Hello Everyone,
    I recently started my programing in JavaEE. First lesson was Servlets.
    My servlet takes the name and a number from a user using a html form and returns a wellcoming message to the user and calculates PI with "number" decimals.
    Well it works using a html form but the next exercise is to launch the servlet from a desktop application. I searched like 2 hours on google and different sites for this. I saw a hint about creating a framework(code was writen in 2001).
    I really really have no idea how to launch the Servlet from a desktop client application.

    The exercise says:
    PI Servlet
    Write a servlet capable of calculating the PI number with a specified number of decimals. Access this servlet:
    1. From a browser, using a HTML form
    2. From a desktop application
    For the calculation of PI use Machin formula PI/4 = 4 arctan(1/5) - arctan(1/239) or a similar one.
    For the calculation of arctan function use Taylor series: arctan(x) = x - (x^3)/3 + (x^5)/5 - (x^7)/7 + (x^9)/9 ...
    My servlet looks like this: without the Methods for calculating PI:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
             try {
                int len = request.getContentLength();
                byte[] input = new byte[len];
                ServletInputStream sin = request.getInputStream();
                int c, count = 0 ;
                while ((c = sin.read(input, count, input.length-count)) != -1) {
                    count +=c;
                sin.close();
                String inString = new String(input);
                int index = inString.indexOf("=");
                if (index == -1) {
                    response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
                    response.getWriter().print("Eroare la servlet");
                    response.getWriter().close();
                    return;
                String value = inString.substring(index + 1);
                //decode application/x-www-form-urlencoded string
                String decodedString = URLDecoder.decode(value, "UTF-8");
                int decc = Integer.parseInt(decodedString);
                String result = CalculatePI(decc).toString();
                PrintWriter out = response.getWriter();
                try {
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Pi Servlet</title>");
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Pi Servlet  </h1>");
                out.println("<p> Wellcome <br /> PI cu "+ decodedString + "zecimale este: <p>");
                out.println("<br />" + result);
                out.println("</body>");
                out.println("</html>");
            } finally {
                out.close();
                // set the response code and write the response data
                response.setStatus(HttpServletResponse.SC_OK);
                OutputStreamWriter writer = new OutputStreamWriter(response.getOutputStream());
                writer.write(decodedString);
                writer.write(result);
                writer.flush();
                writer.close();
            catch (IOException e) {
                try{
                    response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
                    response.getWriter().print(e.getMessage());
                    response.getWriter().close();
                catch (IOException ioe) {
        } The Html form :
    <form action="PiServlet" method ="POST">
        Give PI decimals <input type="text" name="PI" size="20"><br />
        <input type="submit" value ="Submit" >
        <input type ="reset" value="Reset" >
    </form>And my desktop application :
    public static void main( String [] args ) throws Exception {
               if (args.length != 1) {
             System.err.println("errrrr");
             System.exit(1);
         String piString = URLEncoder.encode(args[0], "UTF-8");
         URL url = new URL("http://localhost:8084/MySecondServlet/");
         URLConnection connection = url.openConnection();
         connection.setDoOutput(true);
         OutputStreamWriter out = new OutputStreamWriter(
                                  connection.getOutputStream());
         out.write("string=" + piString);
             System.out.println(piString);
         out.close();
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        connection.getInputStream()));
         String decodedString;
         while ((decodedString = in.readLine()) != null) {
             System.out.println(decodedString);
         in.close();
        }Edited by: ELuCID on Jul 22, 2009 9:42 PM
    Edited by: ELuCID on Jul 22, 2009 10:11 PM

  • Call Crystal Report from Swings

    hi...
    anyone...
    please help..
    currently... i m working in Swings.. together with MS Access...
    now.. wat i need is... to generate report using crystal report...
    i already install CR8 designer...
    wat should i do next???
    anyone.. please... send some exmaple of java(in swings) coding of how to call the crystal report.
    if any type of jar files are required then where to get it???
    please advice...
    thanks..
    [email protected]

    Hi ammad
    I tried this procedure
    but the following lines give an error
    :Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowParentHandle
    := numWinHandle;
    It says bad bound variable.
    What is :item in this line?

Maybe you are looking for

  • Trying to finish up my network

    I've got Airport Extreme up. My PowerMac G5 is connected through ethernet. My Dell Laptop is connected wirelessly. My Xbox 360 is connected through ethernet. I have moved my music to a USB Harddrive thats plugged into the Airport Extreme. My laptop i

  • Has anyone else had trouble with the iphone 5 touch screen?

    So this happened within the last week. I bought my iPhone 5 brand new, its been perfect up until i clicked on my email icon at the bottom and it opened the calendar that is at the top of the screen. Also, when typing in imessage it clicked edit by it

  • How to open bwf files on a bwf formatted disc

    Hi I use Fostex CR-500 to record. I can record fine when formatting this to Audio-CD. These files is easily imported in Logic. But when I want to record in 24/44,1 I have to BWF format the disc. But then I can´t import the files to logic. When openin

  • Problems with my photoshop Help!

    Hi guys, first of all I'm not an expert computer girl but I liked working with photoshop. Days ago I bought a Dell with Windows 8 (first time I use it) then I installed photoshop and I´ve had some problems like this when I tried to save the file. [IM

  • What is happening to Icloud

    What is happening icloud my email has been down all day not good enough