Connecting Tech Pros Worldwide Help | Site Map

How to hide subreport no data

Newbie
 
Join Date: Aug 2009
Posts: 22
#1: Sep 10 '09
Hi,

When I print my report with subreport having no data, there is a big gap between the lines. How can I supress/hide subreport when it has no data.
Expert
 
Join Date: Jul 2009
Location: KY
Posts: 245
#2: Sep 10 '09

re: How to hide subreport no data


Try and set the can grow/can shrink to "Yes" then downsize your sub-report a very small slither. When you set the "Can Grow = Yes", the sub-report will grow accordingly to the number of records in it.

-AJ
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,672
#3: Sep 10 '09

re: How to hide subreport no data


Reports have an On No Data event.

If you know the report will only ever run as a subreport then you can handle the event with code that hides the SubReport control on the main report.
Reply