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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible? Need to Trick CR10 into Thinking Section is Empty.

Status
Not open for further replies.

marcus101

Programmer
Jan 21, 2003
64
CA
Have a rather unusual problem:

I need to programatically "trick" Crystal Reports 10 into thinking that individual field components are not present on the report (the equivalent would be "hiding" them in VB/Access) or to trick an entire section into thinking it is empty come processing time.

Is there a way to do this via a simple CR formula? Or will I have to go to a deeper programming level to try and accomplish this? (say at the app or embedded level?)

Regards,
marcus101




marcus101
Access/SQL/XML Developer
Ottawa, Canada
 
You can conditionally suppress objects and or sections by a boolean condition.
If its a object. Format field(object), click on the common tab, then click on the x+2 along side the suppress check box.
enter you boolean formulae. like
{Tablename.fieldname}='Whatever'
then save it
If the fieldname = 'Whatever' then condition will be true and the field/object will be suppressed.

You can do similar things to sections.

Is that what you mean?

Cheers
Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top