I need to make a text box visible true, false based on the value of a Boolean type column in the data set. How can I do that?
相关问题
- Crystal Report SP26 SetDataSource() Method failed
- Crystal Report in .NET Framework 4.0
- right to left string in crystal report
- Loading Crystal Report from embedded resource
- Suppress Nonadjacent Duplicates in Report
相关文章
- PHP friend/package visibility
- What is the best way to cleanup the resources used
- Selenium C# Webdriver How to detect if element is
- Is there a way to call a private Class method from
- How to pass a list of values into a crystal report
- Crystal Report Sub Report Page Break
- Issue related to vertical line in Crystal Reports
- Dynamically change database type, source etc in Cr
Thanks Justin & Thanushka!
Right click on field and select 'Format Object'.
On the 'Common' tab select the formula editor button to the right of the 'Suppress' label.Click the suppress check box and then click the formula editor button.
To be visible set formula to:
{Field} = 'true'
To be hidden set formula to:
{Field}= 'false'
-Right click on field and select 'Format Object'.
-On the 'Common' tab select the formula editor button to the right of the 'Suppress' label.Click the suppress check box and then click the formula editor button.
-For true to be visible set formula to '{Field} = true'
-For true to be hidden set formula to '{Field}=false'
You may also want to consider the CurrentFieldValue keyword. By using CurrentFieldValue instead of the actual field name, is it easy to copy the formatting between similar fields using the Format Painter.
In your situation, the suppression formula would be
A neat trick to turn a Boolean value to Yes/No is to make use of the field's Display String property; it is also located on the Common tab. Enter the following formula: