Jump to content
Changes to the Jaspersoft community edition download ×

Fill a report


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...