Hi,
I tried the following program--
String reportSource = "./report/templates/HelloReportWorl d.jrxml";
String reportDest = "./report/results/HelloReportWorl d.html";
Map<String, Object> params = new HashMap();
try
{
JasperReport jasperReport =
JasperCompileMa nager.compileRe port(reportSour ce);
JasperPrint jasperPrint =
JasperFillManag er.fillReport(
jasperReport, params, new JREmptyDataSour ce());
JasperExportMan ager.exportRepo rtToHtmlFile(
jasperPrint, reportDest);
JasperViewer.vi ewReport(jasper Print);
}
catch (JRException ex)
{
ex.printStackTr ace();
}
But,It's displaying only the last row in the table which has null values when i give a select * query in iReport.
Could you please help me with the same.
I tried the following program--
String reportSource = "./report/templates/HelloReportWorl d.jrxml";
String reportDest = "./report/results/HelloReportWorl d.html";
Map<String, Object> params = new HashMap();
try
{
JasperReport jasperReport =
JasperCompileMa nager.compileRe port(reportSour ce);
JasperPrint jasperPrint =
JasperFillManag er.fillReport(
jasperReport, params, new JREmptyDataSour ce());
JasperExportMan ager.exportRepo rtToHtmlFile(
jasperPrint, reportDest);
JasperViewer.vi ewReport(jasper Print);
}
catch (JRException ex)
{
ex.printStackTr ace();
}
But,It's displaying only the last row in the table which has null values when i give a select * query in iReport.
Could you please help me with the same.