2006 IR Open Dicussion Posted August 16, 2006 Share Posted August 16, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now