Fill a report

By: olivier bregeas - bregeras
Fill a report
2002-10-18 01:21

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


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.
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 16 years 9 months ago

0 Answers:

No answers yet