GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes JasperReports - genrates empty PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReports - genrates empty PDF" Watch "JasperReports - genrates empty PDF" New topic
Author

JasperReports - genrates empty PDF

igor kvak
Greenhorn

Joined: May 28, 2008
Posts: 17
Hi,
I am new to JasperReports and I am trying to create a sample PDF report, but all I get is an empty PDF - no text, just a blank page.




The resulting PDF should a single text field.
Could you please help me what is wrong with my simple code?

Thanks a lot


Never trouble trouble till trouble troubles you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

It's hard to tell what you are testing there. So, try replacing the parameter value in the template by a constant value. That way you know whether you have problems with your template or problems with providing a parameter to it.
igor kvak
Greenhorn

Joined: May 28, 2008
Posts: 17
thanks for your reply, but I've already solved it - I should use JREmptyDataSource

instead of

it is now
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Glad to hear that, Igor, and thanks for the feedback!
 
GeeCON Prague 2014
 
subject: JasperReports - genrates empty PDF