Jump to content
We've recently updated our Privacy Statement, available here ×

print title and header if no data is returned


Recommended Posts

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

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...