Integrating crystal report with java

Hi
Any one can send me sample program for integrating Crystal report with java.I dont know how to integrate java with cryatal report.if any one helps me out from this problem an advance thanks to them
Thanks
Dilip

Hi All,
For got to mention i am using crystal reports XI release 2 with JDK1.4.
Kalyan

Similar Messages

  • Getting Error while integrating Crystal reports with Java

    Hi All,
    I am getting below error while integrating crystal report with java
    [java] os.arch = x86
    [java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
    (Ljava/awt/Image;I)V
    [java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
    [java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
    Source)
    [java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
    Source)
    [java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
    [java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
    [java] at JRCViewReport$1.run(JRCViewReport.java:50)
    [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:190)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:138)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:130)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Any help can be appreciated
    Kalyan

    Hi All,
    For got to mention i am using crystal reports XI release 2 with JDK1.4.
    Kalyan

  • Integrating Crystal reports with Java Portal (test=pluto,Prod=Vignette

    Hi,
    Crystal reports is new to me...so please don't mind if i sound outright silly, and would love a shove in the correct direction.
    This question might have been asked here (I tried searching for this.)
    Problem: We have some old CR9 reports with us which we want to migrate to our Portal installation Vignette Portal.
    I have seen some Portal integration kits but after having a look at them it seems it is ir-relevant to us...as it requires some server running...we don't have that.

    Update:
    After more investigation, it looks as if the BO Server "CrystalReports2013ReportApplicationServer"
    from time to time has an issue - not only when promoting, but also when viewing publications that contain Crystal Report documents or when executing them, the java class error or similar issue is thrown.
    Did sb face similar behaviour and knows what is the root cause for "CrystalReports2013ReportApplicationServer" not working probably and throwing the java-class error? - it was running fine for several months, now, the class error showed up twice in one month.
    We need to find out what is causing the issue (aleady checked tomcat and BO-logfiles...).
    Best Regards
    Florian

  • Integrating crystal report with swing application

    Hi,
    Any body knows how to integrate crystal reports with swings?
    I'm posting this after a painful search in the net/forum.Any idea
    will be greatly apprecited.
    thanx.
    regards,
    jmos

    The best place to pick up sample code is straight from the horses mouth. [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Crystal java zone

  • Integrating Crystal Report with JSP

    Could any one send me a sample code how to integrate crystal Report
    with JSP. If so it will be a grade help for my project work.
    Thanks Rasika

    The best place to pick up sample code is straight from the horses mouth. [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Crystal java zone

  • Ask about Crystal report with java

    I have a problem. Can you help me to solve it?
    The problem is how to show a crystal report by java and struts action in html.
    Thank you and regards.

    http://www.google.co.za/search?hl=en&q=%2Bjava+%2B%22crystal+reports%22&meta=
    Gives this as the first result:
    http://www.businessobjects.com/products/reporting/crystalreports/java/default.asp
    You then search the site:
    http://www.businessobjects.com/search/?summary=1&client=www_frontend&proxystylesheet=www_frontend&output=xml_no_dtd&lr=lang_en&oe=utf8&ie=utf8&website=&ct=livewww-all&q=java
    Which leads you to this page:
    http://www.businessobjects.com/products/dev_zone/java/default.asp
    Try STFW, RTFM and implement something, then ask a specific question.

  • Help to reg. crystal report 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();
    [\code]
    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

    Multipost.
    http://forum.java.sun.com/thread.jspa?threadID=784597

  • Crystal Reports with Java in Unix Environment

    We have Crystal Enterprise Professional Edition and Embedded Edition v10 with us.We want to use them for generating reports in our development project.
    We have to generate reports as batch jobs ( scheduled jobs) for which we will have a Java Application running in Z/OS (Unix zSeries). This Java Application will connect to our database(DB2) and retrieve data which should be filled in the report design(template).
    1.Can the .rpt file have the design alone(without the data from database).?
    2.Can we fill the data from the database using the .rpt file in a Java Application using an API ?
    3.Can we export this file(report with data) to a text file with a specific character encoding.?
    All the above has to be done using a Java Application that will run in a Z/OS(Unix Environment).
    4.Is Java API for the above operations available as a .jar file that can be included in our classpath in UNIX Environment ?
    I request you all to help me with these queries as soon as possible.
    Million Thanks in Advance.

    Hi,
    It seems that you are having issue with Crystal reports Java SDK's.
    Post your question in Java Development - Crystal Reports forum.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all Java Development queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding
    Amit
    Edited by: Amit Singh on Dec 2, 2008 2:55 PM

  • Using DB2 views in crystal reports with java

    Post Author: Shikha Tomar
    CA Forum: JAVA
    Hello,
    We have used DB2 views in Crystal Report 11.
    We are able to view the report through crystal report tool but while using this rpt file in java application,the DB2 view is not found.
    It gives an error: "table SCDC.View_report not found."
    SCDC.View_report=Name of the view used in rpt
    Code for calling rpt is as below:
    The line marked as red gives the error:
    private static void switch_tables(DatabaseController databaseController) throws ReportSDKException, IOException {
    final String URI = "!com.ibm.db2.jcc.DB2Driver!jdbc:db2://"SERVERNAME":"PORT"/"DATABASE_NAME"!"+"";
    final String DATABASE_DLL = "crdb_jdbc.dll";
    //Obtain collection of tables from this database controller.
    Tables tables = databaseController.getDatabase().getTables();
    CommandTable commandTable=new CommandTable();
    //Set the datasource for all main report tables.
    for (int i = 0; i < tables.size(); i++) {
    ITable table = tables.getTable(i);
    //Keep existing name and alias.
    table.setName(table.getName());
    table.setAlias(table.getAlias());
    //Change properties that are different from the original datasource.
    table.setQualifiedName(TABLE_NAME_QUALIFIER + table.getName());
    //Change connection information properties.
    IConnectionInfo connectionInfo = table.getConnectionInfo();
    //Set new table connection property attributes.
    PropertyBag propertyBag = new PropertyBag();
    //Overwrite any existing properties with updated values.
    propertyBag.put("Trusted_Connection", "false");
    propertyBag.put("Server Name", SERVERNAME); //Optional property.
    propertyBag.put("Connection String", CONNECTION_STRING);
    propertyBag.put("Database Name", DATABASE_NAME);
    propertyBag.put("Server Type", "JDBC (JNDI)");
    propertyBag.put("URI", URI);
    propertyBag.put("Use JDBC", "true");
    propertyBag.put("Database DLL", DATABASE_DLL);
    connectionInfo.setAttributes(propertyBag);
    //Set database username and pasword.
    //NOTE: Even if these the username and password properties don't change when switching databases, the
    //database password is not saved in the report and must be set at runtime if the database is secured.
    connectionInfo.setUserName(DBUSERNAME);
    connectionInfo.setPassword(DBPASSWORD);
    connectionInfo.setKind(ConnectionInfoKind.SQL);
    //connectionInfo
    table.setConnectionInfo(connectionInfo);
    //Update old table in the report with the new table.
    databaseController.setTableLocation(table, tables.getTable(i));
    Regards,
    Shikha

    Hi,
    Fo business views please reffer to [Business Views Administrator's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bv_admin_en.pdf]
    Yes, Crystal Reports 2008 can consume business views.
    Regards,
    Ramu.

  • How to use Crystal Report with Java - need help

    Dear everyone,
    i am completely new to Crystal report , please can anyone help me to creat a very simple Report using the Crystal report,
    the report will show some records from oracle DB.
    How can i make it by a simple example and with code please?
    do i need any JAR or Bean for Crystal report?
    thanks for your help and please don't hesitate to contact me in case of any inquiries.
    my email: [email protected]
    Thanks in advance

    I what to use Crystal report to generate report.My programe in java swing .Iam retrive table from database in Jtable .But when giving print
    command its print half screen .so that why I wantto usecrystal report
    package file2;
    import file2.choice;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import java.awt.print.*;
    import javax.swing.table.*;
    import com.sun.java.swing.*;
    import javax.swing.JTable;
    public class cour extends JFrame implements Printable
         //Menu fileMenu;
         public static void main(String[] a)
    cour n = new cour();
    n.setVisible(true);
    public cour()
         super("Course Report");
         report();
         protected void report()
              JPanel panel = new JPanel();
         JButton printButton = new JButton("Print");
         panel.add(printButton);
         JButton exitButton = new JButton("Exit");
         panel.add(exitButton);     
         DefaultTableModel defaulttablemodel = new DefaultTableModel();
              JTable jtable = new JTable(defaulttablemodel);
              panel.add(new JScrollPane(jtable));
              String      tempname="";
              int tempcnt;
              String driver="sun.jdbc.odbc.JdbcOdbcDriver";
              String url="jdbc:odbc:regs";
              Object[] data = new Object[4];
              try
                             Class.forName(driver);                         
                             Connection connection=DriverManager.getConnection(url,"sa","");
                             Statement statement = connection.createStatement();     
                             String query = "SELECT courseid as CourseID,coursen as CourseName,cfee as Fee,coursed as Duration FROM course";
                             ResultSet rs = statement.executeQuery(query);     
                             ResultSetMetaData rmeta = rs.getMetaData();
                             int numColumns=rmeta.getColumnCount();                         
                             for(int i=1;i<=numColumns;i++)
                                  if(i<=numColumns)
                                       defaulttablemodel.addColumn(rmeta.getColumnName(i));
                             while(rs.next())
                                  for(int i=1;i<=numColumns;++i)
                                       if( i<=numColumns)
                                            tempname = rs.getString(i);
                                            tempcnt=i-1;
                                            data[tempcnt] = tempname;          
                                  defaulttablemodel.addRow(data);                              
                   catch(Exception ex)
              printButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              /*if(ae.getActionCommand().equals("Print"))
              PrinterJob pj = PrinterJob.getPrinterJob();
              pj.setPrintable(cour.this);
              if (pj.printDialog())
              try
              pj.print();
              catch (PrinterException pe)
              System.out.println(pe);
    exitButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              choice ch=new choice();
                   setVisible(false);
                   ch.setVisible(true);
    setContentPane(panel);
         setSize(1040,780);
    /*Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = getSize();
    int x = (screenSize.width - frameSize.width) / 2;
    int y = (screenSize.height - frameSize.height) / 2;
    setLocation(x, y);*/
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex)
    if (pageIndex != 0) return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D)g;
    g2.translate(pf.getImageableX(), pf.getImageableY());
    getContentPane().paint(g2);
    return PAGE_EXISTS;
    }

  • Integrating Crystal reports with xcelsius

    We are trying to generate few reports using Crystal reports application. There are 7 different requirements in total and we want to show a summary of all the requirements in a single report. Since the qualifications for each of the requirement are different, we are unable to proceed with reports.
    Trying to give the summary for all requirements using Crystal Xcelsius dashboard charts and tables, and embed this into a report to provide hyper links to individual subreports, but found few issues while integrating these two applications:
    1. If the swf file is bound to crystal reports data, after exporting the rpt file into pdf, the swf charts are not getting displayed.
    2. If a range of data for a chart in xcelsius is selected, the same range of data need to be passed from crystal reports for the chart to be generated. If data is more, sum rows are truncated.
    How do we solve the issues? Is there an alternative way of achieving the results?
    Can someone please share your thoughts on this?
    Thanks

    Post your question to the Xcelsius forum

  • Integration crystal report with ecc

    hi experts
    i am not similar to crystal report,i wanna know if we can develop the crystal report in ECC directly,i find some forums all about bi,crystal report just can integrate with BI?
    also i need some detail documents ,please help me,thanx all
    best regards
    zlf

    Do not cross post.
    Read the "Rules of Engagement"
    Regards
    Juan

  • How to use Crystal report with Java

    Dear everyone,
    i am completely new to Crystal report , please can anyone help me to creat a very simple Report using the Crystal report,
    the report will show some records from oracle DB.
    How can i make it by a simple example and with code please?
    do i need any JAR or Bean for Crystal report?
    thanks for your help and please don't hesitate to contact me in case of any inquiries.
    my email: [email protected]
    Thanks in advance

    1. Don't ask people to reply by private email. Most Forum regulars believe solving problems should be a public, transparent process during which a first try at an answer can and should be corrected if someone more knowledgeable notices that it is incomplete or incorrect. Also, they get some of their reward for being respondents from being seen to be competent and knowledgeable by their peers.
    2. Don't flag your question as urgent, even if it is for you. Claiming urgency is very likely to be counter-productive: most forum regulars will simply ignore such messages as rude and selfish attempts to elicit immediate and special attention.
    Besides, unless a legion of ninja lemmings is about to chase you over the edge of a cliff, your problem probably isn't as urgent as you think.
    3. Please make the extra effort to write out words such as "please". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership.
    4. STFW.

  • Crystal Report with Java

    Hi
    I m using NetBeans for Java(Swing+JDBC) development
    I wana call Crystal Report file (.rpt) file from Java
    I found following source on Sun Forums:-
    import java.awt.*;
    import javax.swing.*;
    import com.crystaldecisions.ReportViewer.*;
    // Use these to talk to RAS
    import com.crystaldecisions.sdk.occa.report.application.*;
    import com.crystaldecisions.sdk.occa.report.reportsource.*;
    public class HelloWorldSwing
        private static void createAndShowGUI()
            try
                //Make sure we have nice window decorations.
                JFrame.setDefaultLookAndFeelDecorated(false);
                //Create and set up the window.
                JFrame frame = new JFrame("HelloWorldSwing");
                frame.setTitle( "Testing 1, 2, 3");
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                ReportViewerBean     viewer = new ReportViewerBean();
                viewer.init( new String[0], null, null, null);
                ReportClientDocument     rpt = new ReportClientDocument();
                // FLui: set the RAS server if you are using RAS
                rpt.setReportAppServer( "localhost" );
                rpt.open( "ras://C:\\Reports\\MyReport.rpt", 0 );
                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)
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            //com.crystaldecisions.ReportViewer.ReportViewerFrame.main( args );
            javax.swing.SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }Presently I need ReportViewer.jar
    If any one have, please give me at <[email protected]>
    Also guide me how we can pass sql & parameters to Crystal Report

    http://www.google.co.za/search?hl=en&q=%2Bjava+%2B%22crystal+reports%22&meta=
    Gives this as the first result:
    http://www.businessobjects.com/products/reporting/crystalreports/java/default.asp
    You then search the site:
    http://www.businessobjects.com/search/?summary=1&client=www_frontend&proxystylesheet=www_frontend&output=xml_no_dtd&lr=lang_en&oe=utf8&ie=utf8&website=&ct=livewww-all&q=java
    Which leads you to this page:
    http://www.businessobjects.com/products/dev_zone/java/default.asp
    Try STFW, RTFM and implement something, then ask a specific question.

  • Integrating Crystal Reports with Ruby on Rails

    Hello:
    I am looking to integrate Crystal Reports into my ROR application. I have been following this weblog for guidance - http://kkarthik.wordpress.com/ - but cannot seem to find any more resources for this on the web. Does this seem like the best method for doing so, and if not, what would be? Also, I am unable to locate all of the required JAR files for this process. Are these included in the download of either Crystal Reports 2008 or Crystal Reports Server 2008? I have these downloaded and still cannot locate the files. Thank you in advance for the support!

    The jar files etc. are available as part of Crystal Reports For Eclipse (CR4E). Don't think they're included as part of Crystal Reports 2008.
    The approach in the blog you linked to is fairly straightforward. As long as you're using JRuby you should allow you to make calls to the Java reporting API. The example in the blog looks fairly limited, it just produces a pdf from a report file, XML schema and data file.
    Making use of the viewer functionality that's part of CR4E will be a bit trickier as it looks like this needs to make calls to a servlet.
    Good luck!
    Tom.

Maybe you are looking for

  • Problem in Deleting frontendCa​llback from User folder

    Hi,  I am customizing my own frontend callback seq and during application installation am copying that to user Frontendcallback folder (ie D:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Components\Callbacks\FrontEn

  • RSS Feed error in Google Reader

    Like a number of people I have been having some publishing issues with iWeb since the introduction of MobileMe. I've managed to solve a number of them, but I still have a lingering issue. I'm finally able to subscribe to my rss feed on my site, and i

  • Real player plug in not working after update

    The RealPlayer plug in that allows downloads off websites (ie; You Tube) quit working after installing latest Firefox update. Reinstalled RealPlayer and STILL not working.

  • Multi-Language Environment

    I wrote an applet that prints an HTML Page on the client when asked. Because it its in other machine, the applet ask for permission to print. Everything was in English. No problem at all, but happens that I will have to run the software in Brasil ( P

  • Working with InfoProducers in version 3.1

    I get the errors JBO-25002 & JBO-25222 whenever I try to run a project with InfoProducers and InfoSwing items. I can find no information on the following errors ; DAC-405: SessionInfo: Application module creation failed; className: AppModule_bc JBO-2