• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JasperReports - genrates empty PDF

 
igor kvak
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply, but I've already solved it - I should use JREmptyDataSource

instead of

it is now
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear that, Igor, and thanks for the feedback!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic