By: olivier bregeas - bregeras
Fill a report
2002-10-18 01:21
Hi
I have create an application wichi use differrent XML Report file to create PDF. Some of them have SQL query and other not. If I use the JasperFillManager (with fillReportToStream function), I got a NullPointer exception. Do I have to dettermine if the XML report file has an SQL query or not and to use FillManager or not. Or is it a bug.
What I am excepting, is that the FillManager return an JasperPrint or outputStream fill with the PDF File (no dynamic filling of it).
Thanks for your help.
By: Teodor Danciu - teodord
RE: Fill a report
2002-10-18 13:52
Hi,
What version of JasperReports are you using?
I think you won't be getting the null pointer
exception if you would switch to the 0.4.2 version.
If you want the engine to generate something even
if there is no data in the data source, use the
"whenNoDataType" attribute.
I hope this helps.
Teodor
Fill a report
2002-10-18 01:21
Hi
I have create an application wichi use differrent XML Report file to create PDF. Some of them have SQL query and other not. If I use the JasperFillManager (with fillReportToStream function), I got a NullPointer exception. Do I have to dettermine if the XML report file has an SQL query or not and to use FillManager or not. Or is it a bug.
What I am excepting, is that the FillManager return an JasperPrint or outputStream fill with the PDF File (no dynamic filling of it).
Thanks for your help.
By: Teodor Danciu - teodord
RE: Fill a report
2002-10-18 13:52
Hi,
What version of JasperReports are you using?
I think you won't be getting the null pointer
exception if you would switch to the 0.4.2 version.
If you want the engine to generate something even
if there is no data in the data source, use the
"whenNoDataType" attribute.
I hope this helps.
Teodor
0 Answers:
No answers yet