开发者

Crystal Reports - Is it possible to suppress a label or picture based upon a formula?

I need to suppress a label and image if certain data is encountered.

Is this possible in Crystal Reports with a fo开发者_高级运维rmula, or by some other means?


The label suppression attribute supports formulas - click the weird button to the left of the checkbox. It's been there since at least v8.5.

Can't say for images - see if there's the ability to suppress them at all. I've created a section to hold them in the past, and dealt with visibility of the section if that helps.


I have been fencing with this for a while and finally found out how to do it. Yes, Put an image on the header, then if you want the image to only appear depending on the companyid use the suppress button. add the image and then (R) click it and select the properties, useing the general TAB select the button to the right of the suppress tic box. (dont put a tic in the box) just, select the X2 button and put something like this in the code area.> {companyid} in [56,57,58] companyid is a column in a table being displayed on the page and as it is from the data source and is being displayed the system will display on the image when the companyid data is in the list shown. i.e 56 or 57 or 58. The system does not seem to like parameter values when doing this test. but works well if you can make it use data for the test.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜