Export Crystal Report with Subreport in java

Friday, July 14th, 2017 (0 Comment)

To continue Export Crystal Reports to pdf in java, we will practice more detail about export crystal Report with Subreport in java.

In article previous, we have done export report simple with subreport in java. Today, we will export subreport with parameter not belong to main report.

1) Export Crystal Report with Subreport in java

Download subreport_2.rpt for this example

To call function in line 16 (ResultSet resultSet = getResultSet(headers, reports);), we need download mockrunner-core-1.0.4.jar to create function getResultSet and return a ResultSet.

2) Load xml files parmeter to export crystal report with subreport in java

report.xml for main report

subreport.xml for subreport

Run main

Output

 

Tags: , , ,

Related Posts

core java
Convert xml to object java and vice versa
core java
Java basic tutorial on lvtutorial.com
core java
Java hibernate manytomany to manage user role
core java
Java hibernate mongodb OneToMany and ManyToOne

Related Posts

core java
Convert xml to object java and vice versa
core java
Java basic tutorial on lvtutorial.com
core java
Java hibernate manytomany to manage user role
core java
Java hibernate mongodb OneToMany and ManyToOne

Leave a Reply

Your email address will not be published. Required fields are marked *