I set the relation about two table


and the report is like this

It is right when I export the report to excel on the web,
but it throw the exception when I export by java code
Code: Select all
StiReport report =StiSerializeManager.deserializeReport(new File(reportPath));
report.render();
FileOutputStream fout = new FileOutputStream(new File(excelPath));
StiExcelExportService s =new StiExcelExportService();
s.exportExcel(report, fout, new StiExcelExportSettings());