This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JasperReports - genrates empty PDF  RSS feed

 
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: 22503
43
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: 22503
43
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
Boost this thread!