Jump to content

Detecting/Displaying Empty Jasper Report


Recommended Posts

By: David Sachdev - dsachdev

Detecting/Displaying Empty Jasper Report

2006-03-15 05:59

Hello - I am using Hibernate as a datasource, and when the SQL query returns no rows I get back a blank Jasper Report (no headers, no nothing). Is there a way I can get Jasper to either 1) still print the headers or 2) Print out a message saying that the user's query returned no rows?

 

In addition, my reports have an HTML link (via a variable I set) back to the Reports Selection page, but this link does not show when the report is blank. I would have expected Jasper to still print all of the other report elements, but just not have any rows of data.

 

Thanks for your help

David

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...