Crystal Report: Hiding content when specific conditions are met

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.