print title and header if no data is returned

By: marc - marcw718
print title and header if no data is returned
2003-01-10 13:10
If my query does not return any data, nothing gets printed in my report. How can I print the report title and column header when no data is returned from the query?

I tied using:
<band height="50">
<printWhenExpression>new Boolean("true" == "true")</printWhenExpression>

but it does not work.

Thanks,
Marc




By: Giulio Toffoli - gt78
RE: print title and header if no data is returned
2003-01-11 16:19
You must set tag: whenNoDataType in jasperReport element.
Accepted values:

NoPages [default]
BlankPage
AllSectionsNoDetail

Ciao
Giulio




By: marc - marcw718
RE: print title and header if no data is returned
2003-01-13 06:52
Great, thanks for the help. That did it.
-Marc
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 7 months ago

0 Answers:

No answers yet
Feedback
randomness