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.

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 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.

  • 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 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 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

  • How to use Crystal Reports 11 with Visual C++ 2005 ?

    Post Author: compvis
    CA Forum: General
    Hello everyone !
    Plz tell me how to use Crystal Reports XI with Visual C++ 2005 ?
    Thank you so much !

    Moved to .NET SDK forum.
    Need more info, version of the assemblies you are using and the assembly file system version number ( not the same as what you see in the properties of the project.
    As well, what happens if you use OLE DB as a test?
    Thank you
    Don

  • 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 Connectivity with Java

    How to connect our program with crystal report?

    I have never used crystal report. I have created a stand-alone application in java 6 with SQL server 2000 as backend. Its a simple application that maintains records of employees in an organization. I want to use crystal report for report generation. I have crystal report 9 on my system. I have searched a lot on google but could not find any relevant help. Can u provide help in this regard or send me links from where i could get any lead.
    I am not using any IDE as such now. Is it actually needed?
    Any help in this regard would be highly appreciated.

  • 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.

  • Crystal report generation with Java Bean AS  Data source on RAD

    <p>Hi,</p><p>&#160;</p><p>          Our company wants report generation in IBM RAD 7.0  using crystal reports with a Java Bean as data source. i HAVEN&#39;T FOUND ANY ARTICLES TO WORK ON RAD. Any inputs appreciated..</p><p>&#160;</p><p>Thanks,</p><p>Manju</p>

    Look for Java POJO in the doc, i'm using RAD 7.0 and it's working like RAD 6.0

  • How to open Crystal report 9 with crystal report 8

    Hi All,
    I was using Crystal report 9(Seagate Crystal Report). I prepared report on crystal report 9.
    Now I am using Crystal report 8(Seagate Crystal Report).
    When I try to open my reports(that was build on version 9) it gives error: *"Failed to open document"*
    and *"Invalid report version".*
    Could any one please suggest me how I can open and use report of version 9 with version 8.
    Thanks in advance,
    Cheers

    This is the Oracle Forms-forum. Post your question in a crystal-reports-related forum.

  • How to use Crystal Report Server with Crystal Reports for Eclipse

    Hi,
    is it possible to use Crystal Reports for Eclipse with the Crystal Report Server
    like i can do it in Crystal Reports.
    For Example open a Report file directly from the server edit and save there.
    Thanks
    Thomas

    Yes, you can use the CR Server product in your Eclipse project.  However, you will need to use the RAS SDK in your project instead of the CR4E SDK. 
    For more information about the RAS SDK, visit the DevLibrary.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    -MJ

  • How to configure crystal report 2013 with oracle 11g

    hey all,
         i download trial version SAP Crystal Report 2013 and i have Database with 11g and i want to connect with my database and try to develop reports
    but my issue is that i'm not able to connect with database. Can anyone please help to connect with database.
    i am new be with oracle database so it will help me if any one go thru step by step or any link,

    Hi Sandip,
    All you need is a 32-bit Oracle driver to be installed on the machine you're developing the reports on.
    If you already have both the 64-bit and the 32-bit drivers, make sure the Path variable under 'system variables' points to the 32-bit home.
    You can then either create an ODBC DSN or use the 'Oracle Server' native driver that shows under 'Database Expert' to create the report.
    -Abhilash

  • How to create crystal report 2008 with running totals?

    i want to create a report with running totals as follows:
    Balance B/F 1000.00
    Invoices     Receipts    Running B/ce
    100                            1100
                     500             600
                     500             100
    300                              400
                     400                0
    The B/F field is passed as a Parameter.

    Hi  panayiotis,
    In order to create a running total you need to have absolute clarity on the following:
    (i)Whether the running total be set on change of field/record/group.
    (ii)Whether the running total be set on change of record/group OR never.
    Make the appropriate choice.
    Apply this to the field to summarize and type of summary in Running Total Pane.
    Thanks,
    Amogh.

Maybe you are looking for

  • IOS 7 calendar all day events

    Along with the other strange things in ios 7 calendar the notification "bug" is still confusing me. As I work a set of 5 shifts on I input this into my calendar as an all day event commencing on my first day and finishing on the 5th. In iOS6 this wor

  • Itunes sharing with Photoshop Elements?

    I have Photoshop Elements 9 on Windows 7. My wife has an iPad 2. I'm getting an iPad 3. When I set up iTunes syncing for my wife's iPad I created a folder of some special family pictures and I just sync that one folder to her iPad. I'm the photograph

  • 5s Not receiving email

    My iPhone 5s suddenly stopped receiving email, all accounts.  I updated the operating system after the failure, and restored the phone.  I get a message that the "server is not responding" but my desktop and husbands identical phone receive mail just

  • Email invoice to different addresses based on company code

    Running 4.7 and want to send invoice via email to different customer email addresses depending on the company code of the billing document.  Currently, configured to send invoice to bill-to party in header of billing doc.  Still using modified versio

  • Continue execute program while a specific sequence only should be executed every second

    Hi everyone How can I make a sequence executing every 1s while continue executing other code in the meanwhile. e.g.: A ligth should blink with a frequency of 1s. This should be done independently from other code running the same time. I really was tr