Environment - Crystal Reports 2008 , crjava-runtime_12.2.200 jar files, Java 1.5 and XML data source
We are generating reports from our java application. .rpt file is designed using CR 2008 .
There is a sub report attached to our main report. Data source for the main report and sub report is same.
When I export, sub report data part is blank in the generated pdf file.
reportClientDoc.getDatabaseController().setDataSource(xml_ds,"","");
SubreportController subreportController = reportClientDoc.getSubreportController();
IStrings subreports = subreportController.getSubreportNames();
for(String subreportName:subreports) {
subreportController.setDataSource(subreportName,xml_ds,"","");
}
Please help me to fix this problem.
Thanks,
Makesh