Re: Applet using jdbc (ms sqlserver)



Hi Luke,

Thank you for suggesting Jasper Reports.

I have been testing Jasper Reports. Have anybody added JR to an applet? Some help would be needed here..

I've created a report file with iReport-tool. Added these jar's for JasperReports:
commons-beanutils.jar
commons-beanutils-bean-collections.jar
commons-beanutils-core.jar
commons-collections-3.1.jar
commons-digester-1.7.jar
commons-logging.jar
commons-logging-api.jar
commons-jasperreports-1.0.0.jar
commons-jasperreports-1.0.0-applet.jar


Trying to view the report:
try{
  JasperViewer jv = new JasperViewer("test.jrxml",true);
   } catch (Exception e){ e.printStackTrace(); } }

I get the following:
24.8.2005 12:17:20 org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassCastException
at net.sf.jasperreports.engine.xml.JRPrintElementFactory.createObject(JRPrintElementFactory.java:62)


What might be the problem? Have anybody created a tutorial/example applet about reporting from an applet? somebody?


Best Regards, Mika Myllyvirta

Luke Webber wrote:
Mika Myllyvirta wrote:

Hi Frank,

I managed to create an applet that uses net.sourceforge.jtds.jdbc.Driver. It works fine communicating with MS Sql Server. Now I am trying to create reports for the applet. I found Crystal Clear report engine (pure java), that hopefully solves our reporting issues.

Not sure if Crystal Reports would be better, but I'll test the CC first.


Ugh. Crystal Reports is very well named. It's incredibly fragile. Oh, and it needs to be installed on the client (Windows only!) system. Forgedabahtit.

You might consider Jasper Reports, though.

Luke
.



Relevant Pages

  • Re: Looking for confirmation
    ... Your browser? ... How do you get error reports ... I will brook no crap about 'my applet is fine', ... And if the params were being written 'client side' using ...
    (comp.lang.java.programmer)
  • Re: Jasper Report vs. Crystal Reports
    ... > Could you please define Ireports? ... How does it compare with Jasper ... > and Crystal reports? ...
    (comp.lang.java.programmer)
  • Re: Applet using jdbc (ms sqlserver)
    ... I asume your not running the applet in a browser then. ... For a reporter in Java you might also consider Esspress Reports from ... Downloaded the Microsoft JDBC driver for SQL Server 2000 SP 3. ...
    (comp.lang.java.databases)
  • Re: Applet using jdbc (ms sqlserver)
    ... I managed to create an applet that uses net.sourceforge.jtds.jdbc.Driver. ... It works fine communicating with MS Sql Server. ... Now I am trying to create reports for the applet. ...
    (comp.lang.java.databases)
  • Re: Applet using jdbc (ms sqlserver)
    ... I managed to create an applet that uses net.sourceforge.jtds.jdbc.Driver. ... It works fine communicating with MS Sql Server. ... Not sure if Crystal Reports would be better, but I'll test the CC first. ...
    (comp.lang.java.databases)