水晶报表 - 根据数据隐藏文本和图形对象 [英] Crystal Reports - Hiding a text and drawing object based on data

查看:157
本文介绍了水晶报表 - 根据数据隐藏文本和图形对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果数据字段IsVisible设置为1,我想在Crystal Report中隐藏文本和图形。是否有简单的方法?

选择您想要的部分 - >点击禁止(不向下钻取)旁边的公式按钮并输入 {field.IsVisible}<> 1 ,或者您可以选择性地只抑制字段/文字/图片通过右键单击它们 - >'格式字段'或'格式图形' - >'公共'选项卡 - >输入相同的抑制公式。


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?

解决方案

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.

这篇关于水晶报表 - 根据数据隐藏文本和图形对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆