I start learning Java Programming. I develop small java program that connect to database. Now I want to create a report for this application. for example, report of monthly stock out. I know we use Crystal Report in VB.NET. How about Java? Thanks.
Printable View
I start learning Java Programming. I develop small java program that connect to database. Now I want to create a report for this application. for example, report of monthly stock out. I know we use Crystal Report in VB.NET. How about Java? Thanks.
http://sourceforge.net/project/showf...ckage_id=28579
It's has a great documentation too
There have many reports tool in java,for example,stylereprot,jreport.If you want to use a free and open source report tool,I think ireport is a good choice.
Thank all. I have one more question. Can we use Crystal Report with Java? if yes, how?
yes,Of course.Quote:
Originally Posted by ychhuong
I have generated a jsp report with crystal report
Is there any sample of using Crystal Report with Java? I have tried JasperReport, but when I run it i alway got error. Here is my code.
VB Code:
try{ JasperReport jasperReport = JasperCompileManager.compileReport("HelloReportWorld.jrxml"); } catch(JRException e){ e.printStackTrace(); }
Error Message:
VB Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142) at Factoriel.main(Factoriel.java:12)
JasperReport is a free and open source report tool based on java.but it's only a java API and hasn't GUI designer just like crystal report,moreover,the tutorial of jasperreport isn't free.
But there have so many free jasperreport tutorials,just like below link
http://www.developerzone.biz/index.p...98ab874e2e6a10
If you need a free designer,download ireport.
As to the error,you only need copy all jar files under iib directory into classpath,the problem will be sovle.
There also have many good java reports tool,like jreport and stylereport