kevin.clinegmail.com Posted February 1, 2007 Share Posted February 1, 2007 I have a requirement to print "No Records Found" when there are no detail elements in the report. Can someone tell me how to do this? Also, is there anyway to detect the last detail line on a page and give it a bottom border? Link to comment Share on other sites More sharing options...
wegnerk Posted February 2, 2007 Share Posted February 2, 2007 I solved this for my report like this: first, i defined a parameter "noData" with a default text like "Sorry, no values" and placed a textfield with that parameter in the summary band. then i used the printWhenExpression of this field like this Code: Boolean.valueOf($V{REPORT_COUNT}.intValue() == 0) and i didn't want the detailband to be printed empty, i just set the report property whenNoDataType to AllSectionsNoDetail. Like this, my NoData is only printed when the report_count is 0 and detailband is not shown. Hope this helps... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now