File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 18541
    
    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: 18541
    
    8

Glad to hear that, Igor, and thanks for the feedback!
 
Don't get me started about those stupid light bulbs.
 
subject: JasperReports - genrates empty PDF
 
Similar Threads
Showing blank page while running the report in Jasper
JasperReports: "Error loading object from file" Exception
JASPER problem!!
exported Jasper Report has different look than preview in IReport designer