Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Suppress On Demand Subreport Caption For Blank Subreports

Status
Not open for further replies.

Sange

Technical User
Jun 10, 2002
85
AU
Hi,

I have created a main report which is grouped by Person_Id. An On Demand subreport is also placed on the same group level which allows users to view any photos attached to the Person_Id if they wish. The subreport and main report are also linked via the Person_Id field and the On Demand Captions reads "View All Images".

What I would like to do is suppress the "View All Images" caption if the subreport does not contain any images for a person. I have tried "Suppress Blank Subreport" and it isn't working.

I am using Crystal Reports v10.

Any assistance would be appreciated.

SM
 
This has always been a weakness of Crystal, it was resolved in XI.

YOu have to use a hidden SubReport which tests for data. Using a Shared Booleanvar ie No Data = false.

You can then use this to suppress the Ondemand subreport. Of course the hidden SR must execute before the Ondemand SR section is printed.

Ian
 
Thanks Ian,

I had a feeling this was the case - bummer. Thank you for taking the time to confirm this for me.

Sandra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top