Skip to Content
0
Former Member
Jun 09, 2009 at 05:50 PM

Subreports not displaying data

32 Views

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