We often encounter this requirement in Crystal Reports: if this condition is met, this content will be displayed; otherwise, another part of content will be displayed. At this time, you need to hide specific content. I am a dish in the crystal report. I will write down these skills today, so that I won't forget it again ......
1. If a string is not displayed, right-click the string and select "format object"-> "common". There is a check box for "Suppress, click the button with a pen pattern on the right. After you click it, the "formula workshop-format formula Editor" window will pop up. In this window, enter the conditional statement hidden by the string if you want to meet the conditions. For example, if "{data_invoicedetail.tax0percenta} = 0" is input, it indicates that it is hidden when tax0percenta is set to 0.
The above method is suitable for hiding a single string. If you want to hide a row or even a region, you can use the following method.
2. If you need to hide the entire line or even the entire area, you need to use section. First, you need to create a section in the appropriate position and put all the things to be hidden in the Section. Right-click the section header and select "section expert". The "section expert" window is displayed. In this window, select the section (selected by default), and then select the suppress (no drill-down) check box on the right of the window. Click the pen button on the right of the check box to bring up the "formula workshop-format formula Editor" window, just like hiding strings, in this window, enter the conditions that you want to hide the section.