问题
I have a text and drawing on a Crystal Report which I would like to hide if the data field "IsVisible" is set to 1. Is there an easy way to do this?
回答1:
You can either conditionally suppress the entire section that the fields/text/picture is on by going to 'Section Expert' -> select the section you want -> click the formula button next to 'Suppress (No Drill-Down)' and enter {field.IsVisible}<>1
, or you can selectively only suppress the fields/text/pictures in question by right-clicking them -> 'Format Field' or 'Format Graphic' -> 'Common' tab -> enter the same suppression formula.
来源:https://stackoverflow.com/questions/8387354/crystal-reports-hiding-a-text-and-drawing-object-based-on-data