troubleshooting Question

How to Suppress field at runtime

Avatar of mlcktmguy
mlcktmguyFlag for United States of America asked on
Crystal Reports
10 Comments1 Solution2410 ViewsLast Modified:
I am running Crystal 11.0 reports from a VB 6.0 application.  I have standard headers and footers on all reports.  I am using code to change contents of fields at runtime.  Here is an example of wha I am now doing:

   With passedReport.Sections("PageFooterSection1")
     .ReportObjects.Item("genContractName").SetText rptContractName
     .ReportObjects.Item("genSiteName").SetText rptSiteName
   End With

The user has requested the option of suppressing specified fields at their discretion.  I suspect this is similarto what I am doing now but I can't find any documentation on what the property would be instead of 'SetText'.  Is it something like:

   With passedReport.Sections("PageFooterSection1")
     .ReportObjects.Item("genContractName").Supress True
     .ReportObjects.Item("genSiteName").Suppress True
   End With
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros