Run a report from an application

Hi all,
I don't know if this post belongs here or in the Reports forum. Anyway, any help with this will be muchly appreciated. I thought this task would be straightforward enough, but I'm having a whole lot of difficulty finding any instructions on it.
I have an application developed in JDeveloper using BC4J. And I want to be able to print reports from this application. It is a standalone program, i.e., not JSP. I have a number of reports I will want to run, and for now I have created the simplest one in Oracle Reports. How do I run this from my Java application? I would really rather not have to open a browser window or generate a PDF, but just print the thing immediately (or give the user a preview if desired).
Thank you in advance,
Owen Gibbins

Does anyone have any thoughts on this?

Similar Messages

  • Running Oracle Reports from JSF Application in Websphere Application Server

    Hi everybody;
    in our company we are developing jsf applications and we want to use our existing Oracle reports. Reports are deployed in Oracle Application Server 10G. Is there a way to call those reports from our jsf applications deployed in websphere application server.

    Calling reports is just constructing and submitting a URL. So constuct the url in your jsf app or create static hyperlinks in your jsf app to go to the needed url. The url should look something like:
    http ://hostname:7777/reports/rwservlet?report=myrep.jsp&userid=scott/tiger@dev10g&desformat=html&destype=cache

  • Error while running Crystal Reports from application

    Hi,
    I am getting the below error when I try to run Crystal Reports from my application.
    There are no Page Servers connected to the Cache Server or all connected Page Servers are disabled or all connected Page Servers are not part of the specified server group. Please try to reconnect later.
    I am able to preview the reports in CMC and Infoview, but when I try to run the same report via my application the above error pops up.
    Sometimes I get a different error:
    The Page Server you are trying to connect to is not accessible. Please contact your system administrator.
    Looks like some configuration settings are missing/ corrupted.
    I tried to look in a number of websites... tried few workarounds, but none seems to be working.
    Any help is highly appreciated.
    Meena
    Edited by: meenakshitikoo1 on Apr 19, 2011 12:46 PM

    Check the following SAP note
    https://service.sap.com/sap/support/notes/1032461
    Regards,
    Stratos

  • ORA-44356 when running report from Oracle Application Server 10g

    All,
    We have some reports that we developed using Reports Builder 10g. We use a few program units that run with every record that use the exec_sql package to run dynamic sql in a remote database. Everything runs fine when we test the reports in Reports Builder. After we compile the reports into the .rep format and place them on our Oracle Application Server 10g portal instance, we are running into the subject error when we try to run the report from the website. From the research that I've done, it seems that this error has to do with the use of exec_sql, but there is not too much info on the web regarding this error number. Running a trace when running the report in Reports Builder doesn't show any errors, and to further complicate things, this error only occurs on some reports...others that use the exec_sql package work fine.
    Does anyone have any ideas as to why this might be happening?
    Thanks for your help,
    Tom

    Nothing is different between the reports in the exec_sql section. The strange part is that the reports will bomb out seemingly at random, at different times, and during the execution of different program units. I was able to find a work-around using DB Links, but I'd rather not use the DB Link if I can avoid it.

  • How to run a report from WCF

    hi,
    I am trying to run a report from a WCF service application, and then render it in PDF Format to a caller WPF application. But I cant get it! In more detail, this is what my app should do
    1. from WPF, call a web service procedure, pass a report name, report path and parameters. Report is store at the same server where Web Service is installed
    2. WCF procedure loads report, set parameters, retrieve data from DB and renders it as an array of bytes
    3. WPF gets the array, save it into a PDF file, then open it.
    this is the code of the WCF procedure.
        Function DownloadCRReport(codEnte As String, connString As String, reportDir As String, reportName As String, Parameters As Dictionary(Of String, Object)) As Byte() Implements IGesiService.DownloadCRReport
            Try
                Dim bytes As Byte()
                Dim infile As BinaryReader
                Dim fs As FileStream
                Dim rep As New ReportDocument
                Dim RepAddress As String
                logPath = reportDir & "log\"
                sb = New StringBuilder()
                timestamp = Now.Year.ToString & Now.Month.ToString & Now.Day.ToString & Now.Hour.ToString & Now.Minute.ToString & Now.Second.ToString
                logFileName = timestamp & "_" & reportName & ".txt"
                logFile = New StreamWriter(logPath & logFileName, FileMode.CreateNew)
                logFile.WriteLine("----
    Date and time: " & Now.ToString & " -
                If My.Computer.FileSystem.FileExists(reportDir & reportName & ".rpt") = False Then
                    Throw New Exception("file RPT non found in: " & reportDir)
                End If
                RepAddress = reportDir & reportName & ".rpt"
                logFile.WriteLine("rep address: " & RepAddress)
                rep.Load(RepAddress, OpenReportMethod.OpenReportByDefault)
                logFile.WriteLine("load rep")
                If rep.DataSourceConnections.Count > 0 Then
                    rep.DataSourceConnections.Item(0).SetLogon("usr", "pwd")
                    logFile.WriteLine("data source connection")
                End If
                For Each i In Parameters
                    rep.SetParameterValue(i.Key, i.Value)
                    logFile.WriteLine("param: " & i.Key & " - " & i.Value)
                Next
                Try
                    fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
                    logFile.WriteLine("export to stream")
                    infile = New BinaryReader(fs)
                    logFile.WriteLine("created binaryreader")
                    bytes = infile.ReadBytes(CInt(fs.Length))
                    logFile.WriteLine("render pdf. fine")
                    logFile.Close()
                    Return bytes
                Catch ex As Exception
                    logFile.WriteLine("vbCrLf & ex.Message & vbCrLf & ex.InnerException.Message)
                    logFile.Close()
                    Return Nothing
                End Try
            Catch ex As Exception
                logFile.WriteLine("vbCrLf & ex.Message & "-" & vbCrLf & ex.InnerException.Message)
                logFile.Close()
                Return Nothing
            End Try
        End Function
    I detected that error occurs on rep.ExportToStream(ExportFormatType.PortableDocFormat). I should point out that the same procedure works under WPF application. In the WCF server I installed CR Runtime engine for .NET framework (13.0.9.1312) and CR version for Microsoft Visual Studio (same version). Moreover, all DB operations are stored into the report, so I should not pass any dataset, just parameters.
    Anyway, just to begin, I tried to call a simple report with just two string parameters and no queries, but I alwais get error ("An exception of type 'System.NullReferenceException' occurred in MyApp... Object reference not set to an instance of an object)!
    How can I make it work? thanks for help

    hi Ludek,
    Im trying to change DB connection info at runtime for all of the report tables. this is the code I used in my Web Service
              Function DownloadCRReport(...)
    If rep.DataSourceConnections.Count > 0 Then
       Dim conn As New ConnectionInfo
       Dim tabLogon As TableLogOnInfo
       conn.ServerName = "10.10.15.90" 'IP address of DB server
       conn.DatabaseName = "MyDB"   'Database name as set in TNSNAMES.ORA
       conn.UserID = "newuser"
       conn.Password = "newpwd"
       For Each t As Table In rep.Database.Tables
          tabLogon = t.LogOnInfo
          tabLogon.ConnectionInfo = conn
          t.ApplyLogOnInfo(tabLogon)
          logFile.WriteLine("changed logon tab. " & t.Name)
       Next
       rep.Refresh()
       logFile.WriteLine("changed data source connection")
    End If
    'set parameters
    If Not IsNothing(Parameters) Then
       For Each i In Parameters
          rep.SetParameterValue(i.Key, i.Value)
          logFile.WriteLine("set parameter" & i.Key & " - " & i.Value)
       Next
    End If
    fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
              End Function
    that comes to an error on rep.ExportToStream: "Unable to access database".
    Running web service in debug mode, I noticed that, after t.ApplyLogonInfo(tabLogon), the new ConnectionInfo has "password" property empty. Maybe this could cause the error, or is there some mistake in the new connectioninfo?

  • HspRuntimeException while running the report from Workspace

    Hi
    When a user is trying to run a report from Workspace, it prompts teh following error:
    Failed to sync with user provisioning. Check Planning log for detailscom.hyperion.planning.HspRuntimeException
    The report contains 2 grids, 1 pointing to an ASO application, while second pointing to BSO planning application.
    I checked in shared services, the user has the admin access to planning application which is used in the report.
    I tried the following:
    Checked access to planning application for the user
    Restarted the planning application services
    Where in logs will i be able to find details?
    Can anyone suggest some solution?

    Try option 1 then option2:
    Please undertake changes in a test environment. Retest issue and if resolved migrate to other appropriate environments.
    Option 1:
    Verify NETDELAY and NETRETRYCOUNT are at least 1000 & 1500 respectively.
    To set NETDELAY and NETRETRYCOUNT:
    1. Open Essbase.cfg located in Essbase\Bin directory.
    2. Add the following entries
    NETDELAY 1000
    NETRETRYCOUNT 1500
    Restart Essbase agent (windows service)
    Option 2:
    Please backup the registry before making any manual modification.
    1.) Open the Registry
    2.) Navigate to Local Machine\System\CurrentControlSet\Services\TCPIP\Parameters
    3.) Add new DWORD Value named TcpTimedWaitDelay, right click and select Modify. Select decimal radio button, type in 30. (The default value of this parameter is 2 minutes. This is how long it will take for a TCP/IP port that was used by the network for a connection to be released and made available again. 30 sec is the minimum allowed by Microsoft)
    4.) Add new DWORD Value named MaxUserPort, right click and select Modify. Select decimal radio button, type in 65534. ( The default value is 5000.
    This determines the highest port number TCP can assign when an application requests an available user port from the system.
    5.) Add new DWORD Value named MaxFreeTcbs, right click and select Modify.
    Select decimal radio button, type in 6250. (The default value is 2000. This determines the number of TCP control blocks (TCBs) the system creates to support active connections. Because each connection requires a control block, this value determines how many active connections TCP can support simultaneously. If all control blocks are used and more connection requests arrive, TCP can prematurely release connections in the TIME_WAIT state in order to free a control block for a new connection.)
    The above parameters need to be added to the registry on the Planning and Essbase servers. Reboot the servers after the parameters are added.

  • 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

  • Mailing reports from oracle applications

    Hi,
    I am running a customized report as a request from ORACLE APPLICATIONS under NT:
    destype=MAIL desname=[email protected]
    I am getting REP-4202 (Error occurred while logging on to the Mail subsystem) as a result in request log output.
    When I mail same report on app server from DOS promt everything is OK.
    When I run same report from OFIN with default destype everything is OK as well.
    Is it possible to mail reports using destype=MAIL from ORACLE Financial or should I use alert?
    Please respond ASAP.
    Thanks a lot. Andrei.

    hi Andrei,
    You mentioned maling a report on app server from DOS promt.
    Can you please tell me how you do that.
    Thanks.

  • I want to run a report from the desktop

    I want to run a report from the desktop using RWRUN60
    What all has to be installed on it to make it work
    I have 10g client on mine and it works but I can't install that on all the clients
    Is there a little install package for this?
    Thanks

    RWRUN60 is a part of "Oracle From6i Developer Suit". If you want to run report on desktop client than you have to install "Form6i Developer Suit" on every client where report is needed.
    I was facing the same issue and it was a difficult job to install "Form6i Developer Suit" on each client. So, I done the followings.
    1. Configured Oracle Application Express
    2. Created Required Application in Oracle Application Express
    3. Installed "Oracle 10g Developer Suit" and configured "PDF Report Services"
    4. Now, each user is running the application through URL and I have saved my time of installations.

  • 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

  • Calling 10g reports from ADF_BC Application

    Dear All;
    Good day to you;
    I have an ADF_BC application, and at the same time i have 10g reports compiled and placed on forms and reports server,
    i want to call reports from my application as needed, i can put a hyperlink with the link to the report, and it is working fine,
    but i want to know how to change the link to be dynamic, since the application is deployed on 1 application server, and the rerports on the other
    in addition i need, to know how to send parameters
    i am unable to change the properties of a hyperlink in the code, and i do not want to change it in scriplet
    any idea, or tutorials will be most helpful
    thank you
    regards
    halim

    Hello John;
    Thank you for your reply;
    Yes i am using JSF, i am working on JDEV 10.1.3.30, i deployed my application to srvanweb2 a server we have, where the application server port is 7777,
    and i have deployed my reports to srvanweb2 with port being 7778,
    Report: http://srvanweb2:7778/reports/rwservlet?cmdkey=user_string&report=hrempr007.rdf&destype=cache&desformat=pdf
    Application: http://srvanweb2:7777
    my problem is, if i want to embed the link to the report as a common HTML hyperlink it would work, but if i want to set the value for this hyerplink dynamically to be able to add parameters on run time i would have to do it on the scriptlet level, and i can not do it in a bean, since i can not call the hyperlink set value, or even the get value, so my question what should i use to create a link which will change in a bean as you said and be able to call a differnet instance which is srvanweb2:7778, and send parameter
    regards
    Halim

  • Error running 9i reports from forms.

    Hi folks,
    i am having problems running 9i reports from a form.
    i have installed Oracle 9iDS on a Win XP machine with 256 MB RAM and a Pentium 1.4Ghz processor.
    i also have a local Oracle 9i database. i have created several reports that i am trying to run from some forms but all efforts to date have failed.
    below is some sample code.
    declare
    v_rid report_object;
    v_rjob varchar2(100);
    v_rptstatus varchar2(100);
    v_jobid varchar2(100);
    BEGIN
    /*get handle to report object itself*/
    v_rid := find_report_object('pbranchlist');
    set_report_object_property(v_rid,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(v_rid,REPORT_DESFORMAT,'htmlcss');
    set_report_object_property(v_rid,REPORT_DESTYPE,'CACHE');
    set_report_object_property(v_rid,REPORT_SERVER,'repsrv');
    set_report_object_property(v_rid,REPORT_COMM_MODE,synchronous);
    v_rjob := run_report_object(v_rid);
    v_rptstatus := report_object_status(v_rjob);
    while v_rptstatus in ('RUNNING','OPENING_REPORT','ENQUEUED') loop
         v_rptstatus := report_object_status(v_rjob);
         message(v_rptstatus);
    end loop;
    if v_rptstatus = 'FINISHED' then
         /*display report in browser*/
    --      web.show_document('http://steve:8888/reports/rwservlet/getjobid'||
    --      substr(v_rptsvrjob,instr(v_rptsvrjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    web.show_document('/reports/rwservlet/getjobid'||substr(v_rjob,instr(v_rjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    else
         message('error running Report');
    end if;
    end;
    pbranchlist is defined in the form,
    repsrv is a report server i installed and explicitly started.
    on clicking the button to run the above code, i get a message on the browser status bar as follows
    opening http://steve:8888/reports/rwservlet/getjobid11?server=repsrv...
    that's it. it stays like that forever and a progress bar showing the status of the operation gets to the halfway mark and stays there for up to 15 minutes.
    I eventually halted the operation by clicking the stop button of the browser. The form then becomes totally non-responsive with the mouse indicator changing to the hour-glass shape and a small vertical bar moving rapidly back and forth at the bottom of the form window.
    My only recourse then is to explicitly close the browser window.
    I have already configured Reports to run in non single sign-on mode by setting SINGLESIGNON=NO in the rwservlet.properties file.
    Is there anything i have not done properly?
    Thanks in advance.

    Steve,
    can you check the Reports cache directory if the Reports file got created? I would assume yes, but better check.
    Frank

  • How to Run a Report from Desktop in Oracle 10g without using Web

    Hi Friends,
    I want to run a report from desktop (report which is developed in oracle report developer 10g), for that i have created shortcut. But when i double click on that shortcut it gives me followig error
    "Report name, database connection, and reports server name (unless using local runtime, i.e. reports server call is local) properties must be specified for successful report run"
    the path which is defined in the shortcut of report is as follow
    D:\DevSuiteHome_1\BIN\rwsxu.exe rcptreg_dt userid/password@ORC
    pls help me to sort out the problem.
    Thanks & Regards.

    Hello,
    You can use rwrun. Since 9.0.2 , it is no more possible to DISPLAY the output on the screen , but you can generate a file (HTML , PDF , RTF , ..) and then open the file generated.
    EX: rwrun report=c:\temp\myrep.rdf destype=file desname=c:\temp\myrep.pdf desformat=pdf userid=scott/tiger@mydb P_1=param1_value ...
    Regards

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

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

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

  • Unable to run a report from developer 10g

    Hi, i can´t run a report from developer 10g when i run the report with the web icon appears the message
    Thu Jan 07 14:44:29 CST 2010
    javax.servlet.jsp.JspException
    javax.servlet.jsp.JspException
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:470)
         at sif10r4400F202316.jspService(_sif10r4400F202316.java:50)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    my report server is up, my servlet is ok too and REPORT_PATH environment is ok.
    Regards

    Hi, i can´t run a report from developer 10g when i run the report with the web icon appears the message
    Thu Jan 07 14:44:29 CST 2010
    javax.servlet.jsp.JspException
    javax.servlet.jsp.JspException
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:470)
         at sif10r4400F202316.jspService(_sif10r4400F202316.java:50)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    my report server is up, my servlet is ok too and REPORT_PATH environment is ok.
    Regards

Maybe you are looking for

  • Prototype works on PC but not on a mac

    Hey guys, I have a flash site prototype that's in developement, which has been creating it on a PC, however my client uses a Mac and for some reason the document will not run properly on his machine. So far I have a basic document with an subtle anim

  • .default files and Apache logs in 10g AS(10.1.2.3)

    Hi Friends, I am using Oracle 10g AS (10.1.2.3) and i have some .default files in my Middle Tier and Infra home like httpd.conf.default , access.conf.default..... Is it safe to remove these files? Will these files cause any Vulnerability issue on my

  • Best Way to Export Tracks

    Hello, What is the easiest way to export tracks so I can bring into another program (that doesn't have OMF capability). I don't want to have to do a process that takes alot of time. Any ideas wiould be appreciated. Regards, Rich

  • Can't upgrade to iTunes version 9.1.1

    I have a 7 year old PC. My iTunes files are all loaded onto my external hard drive. When attempting to download the latest version of iTunes 9.1.1, I receive the following error message" "Errors occurred while installing the updates. If the problem p

  • RR Reversal for deleted sales order items

    The revenue has been recognised for a sales order. but somehow user deleted this sales order. it seems there was some problem in the deletion. i can still see the sales order in VBAP but not in VBAK. Is there a way to reverse the RR for this sales or