Swings & crystal reports.

hi
i am working with Crystal Reports & Java swings.
i am able to view a simple report in the viewer using ReportViewerBean. how should i pass parameters to the report. every time i try to view a report which need parameters i get "Please Provide Information" pop-up in the viewer & a "LOGON Failed" message on the console.
i am hardcoding the value of the parameters that i want to pass to my report. i am not using JSP.
what is to be done.
thanks

Sounds like a problem that is specific to crystal reports, not swing. You should direct your question somewhere with people that know that tool... like, say... the vendor of the product.

Similar Messages

  • 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

  • Does Seagate Crystal Report Be Integrated with Java Swing

    Hello All
    We are developing java programs for quiet some time now, But what we are trying to do now is can we do the things what VB can do , Thatis the reports from the Database Query can be formatted into Crystal reports
    I use Forte For java Sun One Studio 4 For developing Swing Applicatioon
    If Any of U can give me idea, ie a report not in HTML format But Crystal Report, PLease Le me know
    Regds

    Are you developing an Applet or a standalone application?
    The way I'd handle this is to install the Crystal Reports web server and then call these reports from the web simply by specifying an appropriate URL.
    By the way: the Crytsal reports server also handles report requests in Netscape with JAVA (IE with ActiveX)
    so perhaps this is the right corner to look for answers
    Regards

  • 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

  • Swings and crystal reports

    Hello
    Can anybody help me with a sample code of calling crystal reports from swing app
    I wanna print form data using crystal reports
    Thanks
    Ajay

    Most of our enterprise patches are on protected sites (require user/pw)
    You can try the [ESD|https://businessobjects.subscribenet.com/control/bobj/login]
    or [SMP Portal|http://service.sap.com/bosap-support]
    I cannot grant access, user/pw to these. You will need to try [access issues|https://websmp101.sap-ag.de/~sapidp/011000358700000547712008E] if you do not already have access.
    Regards,
    Tim

  • Call Crystal Report from Swings

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

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

  • How to link crystal report with swing

    I am developing applications in swing. I have done a report using crystal report.
    Now i don't know how to link it with swing. can anyone help me to solve this with some examles.
    thanx in advanz

    Hope these links are useful:
    http://www.must.de/default.html?Jareport.htm
    http://www.utdallas.edu/~pxm034000/files/integrating.html

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

  • Error while running Java application using Crystal Reports 2011

    Hello,
    I would like to ask for your help.
    Environment details:
    Java based standalone application in Development environment.
    Crystal Reports 2011 (no SP applied)
    Oracle 11g ( 32 bit client installed)
    Win7 64 bit OS.
    Workflow:
    While running the java application, which will display the reports I am getting the below mentioned error. I guess that is because I am missing the Crystal runtimes (Correct me if I am wrong).
    I know that CR2011 do not have any sdks/ jar available for deployment. In this case, which runtimes should I be using? Does installing CR2011 be enough in the development box?
    Please provide me the link from which I can download the same.
    Let me know if I need to provide more details on this. Any suggestions are most welcome.
    Thank You.
    Code used:
    reportClientDoc = new ReportClientDocument();
    System.err.println("Opening the Report ");
    reportClientDoc.open(REPORT_PATH, 0);
    // this is where the error or exception is thrown
    _Error: _
    log4j:WARN No appenders could be found for logger (com.crystaldecisions.reports.reportdefinition.ReportDocument).
    log4j:WARN Please initialize the log4j system properly.
    com.crystaldecisions.sdkreport.lib.ReportSDKException: com/businessobjects/reports/jdbinterface/common/DBException---- Error code:-2147467259 Error code name:failed
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:286)
                    at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)
                    at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
                    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.<init>(SourceFile:703)
                    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
                    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
                    at com.crystaldecisions.sdk.report.application.ClientDocument.if(SourceFile:504)
                    at com.crystaldecisions.sdk.report.application.ClientDocument.open(SourceFile:669)
                    at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
                    at rp.batch.bo.RpJRCExportReport.runReportExport(RpJRCExportReport.java:517)
                    at rp.batch.bo.RpSchedReportRun.process(RpSchedReportRun.java:163)
                    at rp.batch.bo.RpSchedReportRun.drive(RpSchedReportRun.java:240)
                    at rp.batch.bo.RpSchedReportRun.main(RpSchedReportRun.java:265)
    Caused by: java.lang.NoClassDefFoundError: com/businessobjects/reports/jdbinterface/common/DBException
                    at com.crystaldecisions.reports.queryengine.Session.a2(SourceFile:244)
                    at com.crystaldecisions.reports.datafoundation.DataFoundation.do(SourceFile:376)
                    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.do(SourceFile:111)
                    at com.crystaldecisions.reports.dataengine.datafoundation.CreateDataConnectionCommand.new(SourceFile:81)
                    at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
                    at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
                    at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:442)
                    at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:231)
                    at com.businessobjects.reports.reportconverter.v12.d.m(SourceFile:192)
                    at com.businessobjects.reports.reportconverter.v12.f.if(SourceFile:210)
                    at com.businessobjects.reports.reportconverter.v12.V12SaveLoader.a(SourceFile:242)
                    at com.businessobjects.reports.loader.ReportLoader.a(SourceFile:205)
                    at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:137)
                    at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:76)
                    at com.businessobjects.reports.sdk.requesthandler.ReportDocumentRequestHandler.a(SourceFile:136)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:229)
                    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.businessobjects.reports.jdbinterface.common.DBException
                    at java.net.URLClassLoader1.run(URLClassLoader.java:200)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                    at sun.misc.LauncherAppClassLoader.loadClass(Launcher.java:301)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                    ... 28 more

    Help me ...
    Ambient:
    Crystal Reports Viewer 14.0.0.0
    java.vendor = Sun Microsystems Inc.
    java.version = 1.6.0_37
    os.name = Windows NT (unknown)
    os.version = 6.2
    os.arch = amd64
    Exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.sdk.erom.jrc.ReportAgentFactory---- Error code:-2147215357 [CRSDK00000026] Error code name:internal
              at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:112)
              at com.crystaldecisions.proxy.remoteagent.RemoteAgent.createDefaultAgent(RemoteAgent.java:1000)
              at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initRemoteAgent(ClientDocument.java:770)
              at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:961)
              at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
              at src.HelloWorldSwing.createAndShowGUI(HelloWorldSwing.java:54)
              at src.HelloWorldSwing.main(HelloWorldSwing.java:24)
    Source:
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import com.crystaldecisions.ReportViewer.ReportViewerBean;
    import com.crystaldecisions.sdk.occa.report.application.DatabaseController;
    import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    public class HelloWorldSwing {
               * @param args
              public static void main(String[] args) {
                        HelloWorldSwing pgm = new HelloWorldSwing();
                        try {
                                  pgm.createAndShowGUI();
                        } catch (Exception e) {
                                  e.printStackTrace();
                                  //JOptionPane.showMessageDialog(null, e.toString());
               * @throws Exception
              public void createAndShowGUI() throws Exception {
                        // Make sure we have nice window decorations.
                        JFrame.setDefaultLookAndFeelDecorated(false);
                        // Create and set up the window.
                        JFrame frame = new JFrame("HelloWorldSwing");
                        frame.setTitle("Titolo del Report");
                        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        ReportViewerBean viewer = new ReportViewerBean();
                        viewer.init(new String[0], null, null, null);
                        ReportClientDocument rpt = new ReportClientDocument();
                        rpt.setReportAppServer(ReportClientDocument.inprocConnectionString); // inproc:jrc
                        rpt.open("Report.rpt", OpenReportOptions._openAsReadOnly);
                        IReportSource rptSource = rpt.getReportSource();
                        viewer.setReportSource(rptSource);
                        frame.getContentPane().add(viewer, BorderLayout.CENTER);
                        frame.setSize(1930, 1030);
                        frame.setVisible(true);
                        viewer.start();

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

  • Crystal Reports 9 and Java

    I have a crystal report that I've done that has a lot of parameters. I want to use java to make a more user friendly interface to enter in the parameters. For example, the user needs to be able to filter by date, stock number, vendor, etc. I'm not a very good programmer, but I can do enough to create a little Swing app that the user can use to enter the parameters. But I have no idea how to hook this into my report. Does anyone know where I can go to find this info? Correct me if I'm wrong, but this should be a fairly easy thing to do and I would rather not spend hours reading stuff I don't understand to try and figure it out. Any help would be greatly appreciated. Thanks

    Crystal reports has a .jar that hooks into Crystal Reports some how ...but I am not sure if it will do what you need or not ...I have never used it myself. I would go look at their website, you can probably find a link to download the .jar and some info docs.

  • Use of Crystal Reports

    Ok Now this may seem to be a little stupid but heres my problem:
    I need to integrate a Crystal Report in my Java Application and I have no idea what so ever how to do it. Here's the case:
    I have a Form in my application that receives various details about an employee and these are to be printed witht the crystal report. what i m doing here is to feed these values in the database table, and then pass a simple query to access these in my report but the problem is "HOW TO SHOW THIS REPORT IN JFRAME OF MY APPLICATION"
    any help will be highly appreciated!!!

    I'd hate to look like advertising for a product, especially a product that I have never used myself, but there exists a "Crystal report dor Eclipse", that is supposed to provide an "SDK that enables report creation and modification with Java code". Have you evaluated that?
    If this doesn't fit, well, you have to consider that we (most of us at least) are not users of Crystal Reports, so you'd better give us more info about what does CR generate. It is easy to display an image in Swing, as mentioned below, it is also relatively easy to display an HTML document, it's reasonably easy to display a PDF report. The techniques will vary, so do the study about what output can be generated and come back with a more precise question.
    Eventually, you should consider your requirement: "these are to be printed witht the crystal report" can be interpreted in a number of ways (one of them being: "From the Java app, run "CrystalReport in interactive mode" command line, the user will just have to click on the "print" icon).

  • Problema Crystal Reports and JBoss

    Hi All!<br>
    I'm developing a swing based that retrieves data from a JBoss connection and I need to add support for crystal reports.<br>
    So here is my environment:<br>
    Swing Application(JavaWEB using jnlp)(JAVA5)->Jboss 4.0.2->dataBase oracle or SQL Server.<br>
    <br>
    I can develop and run my report in report designer without any problem using JDBC(JNDI) connection, but when I open this <br>report in my application, if the JNDI Optional Name is not set,  a connection box is opened and everything works fine.<br>
    The problem occurs when I set JNDI Optional name to the jndi name of my connection(jdbc/FMSDataSource), and try to run the report I receive an error (UndeclaredThrowableException).<br>
    <br>
    I need to use JNDI connection because there are a lot of users that cannot connect directly to database.<br>
    I can see in my JBoss logs that he received the JNDI connection to get the datasource and sucessfully created the proxy <br>classes, so the error seems to be in Crystal component!<br>
    Someone can help me???<br>
    <br>
    To create the swing crystal interface, I'm using the java classes created by crystal plugin for eclipse.<br>
    <br>
    Here is the JBOSS Logs:<br>
    19:47:42,679 DEBUG [WrapperDataSourceService] Created Connection proxy for invoker=jboss:service=invoker,type=jrmp, <br>targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=23801637
    19:47:42,734 DEBUG [WrapperDataSourceService] Created DatabaseMetadata proxy for <br>invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=19017836<br>
    19:47:42,761 DEBUG [WrapperDataSourceService] Created DatabaseMetadata proxy for <br>invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=19017836<br>
    19:47:42,774 DEBUG [WrapperDataSourceService] Created DatabaseMetadata proxy for <br>invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=19017836<br>
    19:47:42,786 DEBUG [WrapperDataSourceService] Created DatabaseMetadata proxy for <br>invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=19017836<br>
    19:47:42,823 DEBUG [WrapperDataSourceService] Created DatabaseMetadata proxy for <br>invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=19017836<br>
    19:47:46,088 DEBUG [WrapperDataSourceService] Created Statement proxy for invoker=jboss:service=invoker,type=jrmp, <br>targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=21097047
    19:47:46,140 DEBUG [WrapperDataSourceService] Created ResultSet proxy for invoker=jboss:service=invoker,type=jrmp, <br>targetName=jboss.jca:service=DataSourceBinding,name=jdbc/FMSDataSource, cacheID=33408758
    <br>
    <br>
    Here is the exception(in client):<br>
    19:45:39,990 ERROR [JRCCommunicationAdapter]  detected an exception: java.lang.reflect.UndeclaredThrowableException<br>
         at $Proxy10.getStatement(Unknown Source)<br>
         at com.crystaldecisions.reports.common.data.JdbcCrystalResultSet.getStatement(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCResultSet.close(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.ResultSetRecordReader.for(SourceFile:94)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.bK(SourceFile:584)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.zL(SourceFile:541)<br>
         at com.crystaldecisions.reports.queryengine.RowsetBase.y9(SourceFile:119)<br>
         at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1434)<br>
         at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1634)<br>
         at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)<br>
         at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)<br>
         at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)<br>
         at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)<br>
         at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)<br>
         at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)<br>
         at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)<br>
         at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)<br>
         at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)<br>
         at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)<br>
         at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)<br>
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)<br>
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:603)<br>
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:568)<br>
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:377)<br>
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:329)<br>
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:1090)<br>
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.byte(SourceFile:218)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1909)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)<br>
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)<br>
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)<br>
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)<br>
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)<br>
         at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)<br>
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)<br>
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(SourceFile:767)<br>
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(SourceFile:324)<br>
         at com.businessobjects.crystalreports.viewer.core.rs.RSRecordSource.openInputStream(Unknown Source)<br>
         at com.businessobjects.crystalreports.viewer.core.TSLVReader.a(Unknown Source)<br>
         at com.businessobjects.crystalreports.viewer.core.TSLVReader.run(Unknown Source)<br>
         at java.lang.Thread.run(Thread.java:595)<br>
    <br>

    You would want to look at the Crystal Reports for Eclipse product which is a pure java solution.  You can find more information on it [here|http://www.sdn.sap.com/irj/sdn/crystalreports-java]

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

Maybe you are looking for

  • MacBook Pro to HD TV Screen Blank

    First of all, no computer skills here...so feel free to talk to me in very simple sentences! lol  I'm one of those that never mastered the clock on a VCR! I am trying to connect my MacBook Pro to a TV with and HDMI port. I want to watch Netflix from

  • 'insert picture' is not working

    hi i'm trying to insert a picture (logo) into report: Main menu -> Insert -> Picture... -> then i click somewhere in the report and i get browser dialogue where i choose .bmp file. After that a rectangle appears with a line by it's diagonal in my rep

  • Adding values to dropdown list programmatically

    Hi, all I have an arrayList as a set of choices for a dropdown list. how do i add it to the dropdown list programmatically? thanx

  • Bitmap/picture/whatever size limitation in Adobe Air on iPhone.

    Hi I'm gonna start on a new app and was wondering what the max width and height of a picture can be? I will import a big picture into my Flash CS5.5 (pro) and place it in a movieclip. I found this info on an old site from 2008: Note: The maximum dime

  • Background in slideshow...

    Hello wise ones, Is it possible to put a fixed background image in my slide show? In the slideshow timeline i see there are more than one video tracks but i can only activate one... is there a way?