简体   繁体   English

使用xml作为数据源在java中创建报表

[英]Creating a report in java using xml as datasource

I'm working on creating a PDF bill report in java. 我正在努力用java创建PDF账单报告。 I tried crystal reports, jasper reports but they require database connectivity. 我尝试了水晶报告,jasper报告,但他们需要数据库连接。 I'm looking on how to create reports using XML as a datasource. 我正在研究如何使用XML作为数据源创建报告。 If anyone has worked on this before please guide me on how to proceed. 如果有人在此之前就此工作,请指导我如何继续。

Jasper reports don't need a database connection. Jasper报告不需要数据库连接。 They can use a collection of Java beans as their input. 他们可以使用一组Java bean作为输入。 Transform the XML data source into custom Java objects or maps and pass them to a report. 将XML数据源转换为自定义Java对象或映射,并将它们传递给报表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM