Forums Register Login

JasperReports - genrates empty PDF

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
thanks for your reply, but I've already solved it - I should use JREmptyDataSource

instead of

it is now
+Pie Number of slices to send: Send
Glad to hear that, Igor, and thanks for the feedback!
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 15523 times.
Similar Threads
exported Jasper Report has different look than preview in IReport designer
JASPER problem!!
JasperReports: "Error loading object from file" Exception
Showing blank page while running the report in Jasper
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:54:00.