How to integrate Crystal Report viewer on java swing Jframe

Dear, I want to display crystal reports in java Desktop applicaion. can any one help me how can i display crystal report developed report in java application. i searched best but not able to find right direction.
Regards,
Sahibzada
Edited by: Sahibzada on Jan 27, 2010 4:32 AM

You can use [i-net Crystal-Clear|http://www.inetsoftware.de/products/crystal-clear]. It is a Java Reporting Framework that can read and execute Crystal Reports files. It is very easy with i-net Crystal-Clear to show a report which is design with Crystal Reports in a Java Swing application.

Similar Messages

  • How to integrate Crystal Report 2008 with java

    Currently we are using Crystal Report XI with our application, it is working fine. Now we are updating to Crystal Report 2008.
    We have build our application in enterprise archive file. There is a web archive file(.war) file in the EAR file which contains the crystal report. Inside the .war file we have reports folder which contain jsps and rpt folder. the jsps folder contains the crystalreportviewers12 folder and .jsp files. The rpt folder contain the.rpt files. The WEB-INF which is at the reports folder leavel contains the classes and lib folder.  The crystal report jars are in the lib folder and the CRConfig.xml file inside the classes folder.  I replaced all the crystal report jar with Crystal Report 2008 jars, modified the web.xml and the CRConfig.xml file accordingly. When I opened the report it gave me an error.
    When the following line was execuated in the jsp:
    reportClientDocument.open(report, 0);
    it gave me following error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.new(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at com.ibm._jsp._MessageStatusRpt.jbInit(_MessageStatusRpt.java:196)
         at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:313)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
    [1/15/10 17:37:40:703 IST] 00000026 ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /reports/jsps/MessageStatusRpt.jsp. Exception thrown : java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.f(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getReportSource(Unknown Source)
         at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:314)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
    [1/15/10 17:37:40:703 IST] 00000026 WebApp        E   [Servlet Error]-[/reports/jsps/MessageStatusRpt.jsp]: java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.f(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getReportSource(Unknown Source)
         at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:314)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

    Hello Ted,
    As per the samples in the link provided by you I identified that the following statement was missing.
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    After adding this statement the jsp was not able to compile, it gave me an error:
    ReportClientDocument.inprocConnectionString cannot be resolved
    Now my queries are:
    1. What is Report Application server(RAS)?
    2. Is it required to set Report application server in JSP page? It was not required in Crystal Reports XI. If YES, then how to configure RAS inside our applications WAR file?
    3. I am using WebSphere Application Server for deploying the WEB Archive file (WAR file). The Crystal Reports 2008  library (JARS) are embedded inside the WEB-INF/lib folder. How to specify the RAS server inside thhe WAR file? Is it some XML configuration file which we have to keep at WEB-INF level? Or we have to modify the existing CRConfig.xml file?
    4. I would like to mention here that we have bundled crystalreportviewers12/ folder in our WAR file at the same level where reports JSP pages exits.
    Thanks in advance.

  • How to integrate crystal report 9 with java

    hi friends,
    I have installed the crystal report and J-Integra also.
    but I am not able to find the crystl32.ocx in my c:\windows\system32 folder .
    So I downloaded it separately and use the J-Integra's com2java convertor to generate crystal package.
    Then as per manual I compiled that package and created crystal.jar file.
    And while try this setting with a sample code.
    package javaapplication10;
    public class CrystalClient {
      private static final String CONNECT_STRING = "DSN=test";
      private static final String REPORT_FILE_NAME = "d:\\arp\\cryrpt1.rpt";
      private static final String SQL_QUERY = "select * from tab1";
      private static final String PRINT_FILE = "d:\\arp\\YourNewReport.doc";
      public static void main(String args[]) throws Exception{
        try {
          crystal.CrystalReport report = new crystal.CrystalReport();
          report.aboutBox(); // Lets see if it was loaded properly
          report.setConnect(CONNECT_STRING);
          report.setReportFileName(REPORT_FILE_NAME);
          report.setSQLQuery(SQL_QUERY);
          report.setPrinterCopies((short) 1);
          report.setPrinterCollation(crystal.PrinterCollationConstants.crptDefault);
          report.setDestination(crystal.DestinationConstants.crptToFile);
          report.setPrintFileName(PRINT_FILE);
          report.setPrintFileType(crystal.PrintFileTypeConstants.crptWinWord); // Change output type if necessary
          report.printReport();
        } finally {
          com.linar.jintegra.Cleaner.releaseAll();
    }During compilation no error found.
    But during runtime it says that
    init:
    deps-jar:
    compile-single:
    run-single:
    J-Integra 2.6 Copyright (c) Intrinsyc Software International, Inc. http://j-integra.intrinsyc.com/
    Thank you for choosing J-Integra.
    You have been evaluating this product for 2 days.
    Please visit http://j-integra.intrinsyc.com/ for
    documentation, support, and purchasing information.
    Exception in thread "main" AutomationException: 0x80040154 - Class not registered
    at com.linar.jintegra.bt.b(Unknown Source)
    at com.linar.jintegra.Rpc.a(Unknown Source)
    at com.linar.jintegra.bm.a(Unknown Source)
    at com.linar.jintegra.Dispatch.createDispatch(Unknown Source)
    at com.linar.jintegra.Dispatch.<init>(Unknown Source)
    at crystal.CrystalCtrlProxy.<init>(CrystalCtrlProxy.java:40)
    at crystal.CrystalReport.<init>(CrystalReport.java:117)
    at crystal.CrystalReport.<init>(CrystalReport.java:107)
    at javaapplication10.CrystalClient.main(CrystalClient.java:23)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    eventhough it is not the mistake of javacode.
    if anyone able to clarify my dobut kindly help me.
    Thanks in advance.
    Raj

    yes I tried through velocity reviews also still
    waiting for the response.Aaaaaaaaargh. If you were here, I'd hurl my mug at you.
    http://forum.java.sun.com/thread.jspa?threadID=784305
    Someone commented here already. No reply from you.

  • How to integrate Crystal Report XI though JSP

    Hi ..
    Any body know how to integrate Crystal Report XI though JSP.
    We have already intedrated Crystal Report 9 though JSP successfully.
    But now we need to integrate CR XI with JSP.
    Please help me.

    Hi,
    I am trying to integrate crystal report in jsp application but am not success. Please provide me a solution , how to integrate crystal report in java,jsp. my mail id [email protected]/[email protected]...
    regards
    Java

  • InfoView Default Crystal Report Viewer to Java

    Anyone know how to do set the Infoview Crystal Report Viewer to Java as default in R3.1 ? We can do it from R2 CMC  but not anymore since upgrade.
    Our client computer doesn't allow ActiveX download.
    Thanks In advance,
    Tommy

    Hi,
    Did you tried by setting in InfoView itself.
    After logged in to InfoView, select the Preferences option and choose Crystal report as a reporting type.
    Here you can set the default viewer type when CR report is opened.
    -Noor.

  • How to integrate Crystal Report  with oracle JDeveloper 11g

    Hi,
    How to integrate Crystal Report  with oracle JDeveloper 11g
    Regards ,
    Amol

    I dont think that you can integrate Crystal Reports with JDevelpoer but you can use runtime libraries to your project to get crystal report functionality
    To know more please go through supported platforms
    [Supported Platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504d0204-681e-2b10-2381-853d88974cfc]
    Regards,
    Tej

  • How to integrate crystal report(CR4E) with oracle JDeveloper 10

    Hi All,
          I was made crystal report in crystal report for eclipse in that i implemented .rpt & .JSP file it is working fine in CR4E
    .I was Copied that  file in JDeveloper 10 with its Library from JRC component while, running this page with passing parameter showing error in the page and without passing parmeter it is running it shows report
    can any one  please help me in this matter how to integarte crystal report in oracle JDeveloper 10 .or give me any Tutorial link that can help to solve these problem
    ITS URGENT PLZ help me
    Sinceraly,
    Amol

    It might help if you indicate what error you're seeing.
    Note that the JRC isn't Eclipse specific - it's a 100% pure Java solution.
    Sincerely,
    Ted Ueda

  • How to use Crystal report viewer in a portlet based web application

    I am using JRC to view crystal reports in porlet based web application. Following is the code in JSP
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    With this code , report gets displayed in the portlet but none of the actions on thre report like next page click , search button , opening subreport , clicking on drill-downs are working . The error in the explorer console is as shown below
    Error: CrystalViewerCrystalEvent is not defined
    javascript:CrystalViewerCrystalEvent('CrystalViewer',%20'tb=next')
    PageSource of the web page shows the CrystalViewerCrystalEvent javascript function defined but for somereason its not recognized by the portlet. Has anyone worked on displaying crystalreports in a portlet ?

    Code attached
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Edited by: teethoma on Nov 30, 2009 10:06 AM

  • How to integrate Crystal Report Server and J2EE platform

    Hi,
    It's my first time using Crystal Report, so I don't know exactly how I should start...
    As what i've searched around, there is a method of generating crystal report from a JSP file. By this way, everything will be handled within the application server.
    But in my project, we intend to leave the part of handling and generating report to another server, i.e. there will be 2 servers: application & report. Anyone experienced with this can guide me through? By splitting into 2 servers, that means I will need to have the Crystal Report Server right? And if doing so, from the application, how do I call the Crystal Report server?
    Thanks for viewing...

    You can use [Crystal Reports for Eclipse|Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!; to do exactly this. It comes with an example application for displaying reports using the CR Web Report Viewer. It's EXTREMELY easy to use and even to integrate in your existing web app. If you're using Eclipse and have the CR4E plugin installed, you can go to File > New > Crystal Reports and select Crystal Reports Web Project. This will create the CR server application for you. You can also right click on an existing web app and have Crystal Reports integrated directly into your existing app.
    To do this, just right click on your web app and go to Project Properties. Then, go to Project Facets, check the box next to Crystal Reports, click Apply and then OK. It will copy all of the necessary runtimes into your lib folder and will even update your web.xml to include the stuff needed for CR. On the left, you should see Crystal Reports File Versions. Click on that and you should see the version of Crystal that was just installed into your web app along with all of the files that were copied or modified.
    You could probably then create a report viewer in your other app (maybe an iframe?) that includes a link to the report in the CR Web App.
    If you need more assistance with this, let me know. I'd be glad to help out as I've already played with something similar to this.

  • Need help connect Access Database to Crystal Report Viewer in java

    Need example for passing parameters to PropertyBag Class and IConnectionInfo Class.
    We use CR_JRC_11.8
    Thanks

    A sample that demonstrates how to change the database that a report uses at runtime in the JRC can be found at the following link on the SAP Portal:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ad3d3d-be66-2b10-2181-f46c6e05a420
    To help determine what connection properties need to be changed at runtime through code, create a copy of your original report and use the Crystal Reports designer to change this report to new datasource manually.  You can then use the  jrc_display_connection_info helper sample to examine what the parameters should be in the property bag before setting the IConnection information.  The jrc_display_connection_info helper sample can be found at the following link on the SAP Portal:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/706202a4-bd66-2b10-4e8b-92f4a8024ea1
    Hope these samples help.
    Regards.
    - Robert

  • Can anyone let me know how to integrate crystal reports with bi 7?

    HI all,
    Can anyone pls let me know the steps involved in integrating crystal reports with bi 7?
    thanks
    Pooja

    1.install BO client tools
    2. install crystal reports
    3.install sap integration kit
    once you install in above sequence you will be able to pull data from BW system.

  • Crystal Report for Eclipse - Java SWING - JDBC Examples?

    <p>Good day! I am just a newbie in Java Programming and I am wondering if there is an example application in SWING-JDBC w/reports that uses Crystal reports w/ Eclipse IDE. As what I have noticed, all of the examples I have seen here are all in jsp and I havent seen anything for swing-jdbc only. I want to try using crystal reports in java. </p><p>&#160;</p><p>Do you guys have some examples (even a very simple one) that uses crystal reports with Eclipse and even with a simple database like Access? Any sample, tutorial downloads with this topic? hope you guys can help. thank you very much and God bless.</p>

    Crystal Reports doesn't have the same niece tooling for desktop/swing applications that it does for JSP/Web applications. That said you can still create reports with CR4Eclipse and use them in a Swing applications. Try out these samples that I posted. They are all desktop/swing applications. These will work with Eclipse.
    [http://diamond.businessobjects.com/node/707 | /node/707]
    [http://diamond.businessobjects.com/node/335 | /node/335]
    Hopefully this is helpful.
    Rob Horne
    Rob's blog - http://diamond.businessobjects.com/blog/10</p>

  • How to show arabic data in to crystal reports ?How to aligh crystal report right to left

    <p>we are trying to make a crystal report for both english and arabic..All the arabic data is stored in data base tables.And for arabic screens we need tables and datas come right to left.. </p><p>1)How can we get the arabic data and right to left alignment in crystal reports? </p><p>2)Is thee any direct method to change the report alignments? </p><p>can u please send some sample codes. </p><p>we are using java version= 1.5 </p><p>database using =Oracle 9i </p><p>char set we are using for arabic= CP1256</p><p> Tomcat using=4.1 </p><p>we are using Crystal Reports11 </p><p>We are not having seperate rpt files for reports. we are making each Sections and adding this sections to FieldObjet to make the report dynamically. A sample Employee report in english is attached..Can u instruct how can i get this report in arabic assuming all datas are stored in database. </p><p><br />import java.awt.BorderLayout;<br />import javax.swing.JFrame;<br />import com.crystaldecisions.ReportViewer.ReportViewerBean;<br />import com.crystaldecisions.sdk.framework.CrystalEnterprise;<br />import com.crystaldecisions.sdk.framework.IEnterpriseSession;<br />import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;<br />import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;<br />import com.crystaldecisions.sdk.occa.report.data.;<br />import com.crystaldecisions.sdk.occa.report.definition.;<br />import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;<br />import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;<br />import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;<br />public class ReportSample {<br /> ReportClientDocument rptDoc=null;<br /> int fldTop=0;<br /> int fldWidth=1440;<br /> int fldHeight=400;<br /> int pageWidth=11500;<br /> ReportSample(){<br />  try{<br />   IEnterpriseSession oEnterpriseSession= CrystalEnterprise.getSessionMgr().logon("Administrator", "","zzzza","secEnterprise");<br />   IReportAppFactory oReportAppFactory = (IReportAppFactory)oEnterpriseSession.getService("", "RASReportService");<br />   rptDoc = oReportAppFactory.newDocument(java.util.Locale.ENGLISH);<br />   Table oTable = new Table();<br />   oTable.setConnectionInfo(getConnectionInfo("zzzzz","zzzz","zzz", "zzz"));//Connectin to oracle database<br />   oTable.setName("EMP1");<br />   rptDoc.getDatabaseController().addTable(oTable, null);<br />         String[] columnName={"EMPNAME"};<br />       Section dtlSection=(Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />   int fldLeft=100;<br />   for (int i=0;i<columnName.length;i+)<br />   {<br />    <br />    dtlSection= (Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />     try{<br />     FieldValueType fldValueType = FieldValueType.stringField;<br />     String javaDataType="String";<br />      add_db_field(<br />      dtlSection, <br />     oTable.getName()"."columnName<i>, <br />     fldValueType,javaDataType,<br />     fldLeft, fldTop, fldWidth, fldHeight);<br />     }catch(Exception e){<br />      e.printStackTrace();<br />     }<br />    fldLeft = fldLeftfldWidth;<br />   }<br />   <br />       <br />   try { <br />          //Create and set up the window.<br />          JFrame frame = new JFrame("ReportsViewer");<br />          frame.setTitle( "Crystal Reports Viewer");<br />          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />          ReportViewerBean viewer = new ReportViewerBean();<br />          viewer.init( new String[0], null, null, null);<br />          IReportSource rptSource = rptDoc.getReportSource();<br />          viewer.setReportSource( rptSource );<br />          frame.getContentPane().add( viewer, BorderLayout.CENTER );<br />          frame.setSize( 700, 500 );<br />          frame.setVisible(true);<br />          viewer.start();<br />   }catch(Exception e)<br />    {<br />     e.printStackTrace();<br />    }</p><p>   }catch(Exception e)<br />   {<br />    e.printStackTrace();<br />   }<br /> }<br /> public ReportObject add_db_field(Section oSection, String field_name, <br />   FieldValueType oFieldValueType,String fldDataType,<br />   double x, double y, double w, double h)<br /> throws ReportSDKException<br /> {<br />  DBField oDBField = new DBField();<br />  oDBField.setName(field_name);<br />  oDBField.setType(oFieldValueType);<br />  FieldObject oFieldObject = new FieldObject();<br />  oFieldObject.setDataSource(oDBField.getFormulaForm());<br />  oFieldObject.setFieldValueType(oDBField.getType());<br />  IndentAndSpacingFormat indentSpacing = new IndentAndSpacingFormat();<br />  IStringFieldFormat stringFieldFormat = oFieldObject.getFieldFormat().getStringFormat();<br />  stringFieldFormat.setIndentAndSpacingFormat(indentSpacing);<br />  oFieldObject.getFieldFormat().setStringFormat(stringFieldFormat);<br />  rptDoc.getReportDefController().getReportObjectController().add(oFieldObject, oSection, -1);<br />  return oFieldObject;<br /> }<br />  public ConnectionInfo getConnectionInfo (String new_username, String new_password, String new_dsn, String new_database)<br /> {<br />  <br />      ConnectionInfo oConnectionInfo = new ConnectionInfo(); // Make a copy, don&#39;t change the original.<br />      PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();<br />      oPropertyBag1.put("QE_ServerDescription", new_database);<br />   oPropertyBag1.put("Database DLL", "crdb_oracle.dll" );<br />   oPropertyBag1.put("DSN", new_dsn);<br />   // Set new table logon properties attributes<br />   PropertyBag oPropertyBag2 = new PropertyBag();<br />   oPropertyBag2.put("Server", new_database);<br />   oPropertyBag1.put("QE_LogonProperties", oPropertyBag2);<br />   oConnectionInfo.setAttributes(oPropertyBag1);<br />   oConnectionInfo.setUserName(new_username);<br />   oConnectionInfo.setPassword(new_password);<br />   // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).<br />   oConnectionInfo.setKind(ConnectionInfoKind.CRQE);<br />   return oConnectionInfo;</p><p>  }<br /> public static void main(String[] args) {<br />  // TODO Auto-generated method stub<br />  new ReportSample();<br />  //String cmsName = "admin-42cdvir7e(2)";<br />  <br />  <br />  <br /> }<br /> </p><p>}<br /></p>

    <p>This issue can be  solved when you create the reports without needing to write any extra code.  I haven&#39;t tested this solution because I don&#39;t have any data to test it against.</p><p>First you want to make sure that you are using a UNICODE font which I&#39;m sure you are probably already doing.  Then to configure the "Right to Left" you can right click on any field and select "Format Text" or "Format Field".  You should see a "Paragraph" tab.  In there you can set the content to be "Left to Right" or "Right to Left".  The button on the right allows you to make this setting conditional on a parameter value or something like that.  I hope this helps. </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • How to set printersettings for the crystal report viewer in SAP BI dynamically

    Hello
    I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
    http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
    This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
    shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
    Thanks & Regards,
    Rajeswari.

    There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to print directly to Printer from Crystal Report Viewer ?

    Hi All,
    We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
    Now there is new requirement :
    Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
    So I am looking at  Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
    Thank you very much,
    Krist
    Indonesia

    Hi,
    It can't be achieved through XI.
    JRCXI R2 SDK offers the ability to print the report server side
    using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
    Here is the code(for XIR2):
    import="com.crystaldecisions.reports.sdk.*"
    import="com.crystaldecisions.sdk.occa.report.lib.*"
    import="com.crystaldecisions.sdk.occa.report.document.*"
    try {
    final String REPORT_NAME = "Inventory.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    //Create and set print options.
    PrintReportOptions printOptions = new PrintReportOptions();
    //Note: Printer with the 'printer name' below must already be configured.
    printOptions.setPrinterName("
    10.10.45.220
    BOBJ 2C");
    printOptions.setJobTitle("Sample Print Job from JRC.");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //NOTE: If parameters or database login credentials are required, they need to be set before.
    //calling the printReport() method of the PrintOutputController.
    reportClientDoc.getPrintOutputController().printReport(printOptions);
    reportClientDoc.close();
    out.println("Successfully sent report to the printer.");
    catch(ReportSDKException ex) {     
         out.println(ex);
    Please revert in case you have any query.
    Thanks,
    Neeraj

Maybe you are looking for