在RDLC报表查看器中隐藏矩形 [英] Hiding rectangles in RDLC report viewer

查看:89
本文介绍了在RDLC报表查看器中隐藏矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在应用程序中使用RDLC报告.
在正文部分,我将所有内容放置在矩形中,
现在,我想根据某些条件显示或隐藏矩形.
并且应该使用C#后面的代码来完成.
我正在使用"xx.aspx.cs"来处理报告.

任何人都可以给我任何方法来实现这一目标.

提前谢谢.
斯里.

[edit]已更正主题以匹配主体:三角形"变为矩形"-OriginalGriff [/edit]

Hi
I''m using RDLC reports in my application.
In the body section, I have placed all the content in rectangles,
Now I want to show or hide rectangles based on some conditions.
and it should be done in code behind in C#.
I''m using "xx.aspx.cs" to handle the reports.

Can anyone please give me any approach to accomplish this.

Thanks in advance.
Sri.

[edit]Subject corrected to match body: "triangles" becomes "rectangles" - OriginalGriff[/edit]

推荐答案

每个控件都有一个Visible属性.它说:对,错,表情.

选择表达式.使用它,您可以在表达式窗口中使用VB6代码放置任何条件.
像这样的东西:
There is a Visible property for every control. It says: true, false, Expression.

Choose Expression. Using it, you can put any condition using VB6 code in the expression window.
Something like:
=iif(Len(Fields!MyField.Value)>12,true,false). 


这篇关于在RDLC报表查看器中隐藏矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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