怎样自动关闭条件设置组件

作者:cheny    来源:Stimulsoft中文网    浏览:Loading...      日期:2013-07-23

提问:
在使用Stimulsoft Reports编程C#.Net中,如果在我的报表中的StiText设置,可以不选“Component is Enabled”复选框来关闭条件设置组件,但是在C#  page_load 事件中如何自动关闭他呢。

解答
用以下代码试试:
...
StiText text = report.GetComponentByName("Text1") as StiText;
((StiCondition)text.Conditions[0]).Enabled = false;
...

Tag标签:Stimulsoft Reports 

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:Stimulsoft中文网 [http://www.Stimulsoft.cn/]
本文地址: http://www.Stimulsoft.cn/Resources/FAQ/181.html

上一篇: 如何禁用自定义函数水印

下一篇: 多页报表按设计连续运行