byron.ullauri Posted February 14, 2018 Share Posted February 14, 2018 I have a subreport that I want to print only when it has data, My approach to this is to return a variable (boolean) that checks if the first value of a field is null. In the master report, I added a "dummy group" band to place the subreport in and in the "print when expression" for the band I placed the returned variable. The issue is that the band never prints even when I explicitly set the returned variable to true in the subreport.I tried placing the variable itself in a text field on the page footer and it prints the correct value for it. Link to comment Share on other sites More sharing options...
Solution sergey.vishnevetskiy Posted February 14, 2018 Solution Share Posted February 14, 2018 In the properties of your subreport just set "When No Data Type" to NULL and it will not show anything, if no data selected. Link to comment Share on other sites More sharing options...
byron.ullauri Posted February 15, 2018 Author Share Posted February 15, 2018 Chose subreport and didn't see any "When No Data Type" property on the menu, tried searching for it as well.Edit: The "When No Data Type" property belongs to the report itself and corresponds to the "No Data" band 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