如何访问Stimulsoft Reports变量值(代码示例)

作者:mayz    来源:Stimulsoft    浏览:Loading...      日期:2012-11-06

要访问Stimulsoft Reports变量值,请参考以下代码:

C#
StiReport report = new StiReport();
report.Load("Variables.mrt");
report.Compile();
//Set Variable
report["VariableName"] = "Value";
//Get Variable
object value = report["VariableName"];

VB
Dim Report As StiReport = New StiReport()
Report.Load("Variables.mrt")
Report.Compile()
'Set Variable
Report.Item("VariableName") = " Value "
'Get Variable
Dim Value As Object = Report.Item("VariableName")

 

Tag标签:.Net报表 Stimulsoft Reports.Net 

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

上一篇: .Net报表控件对比:StimulReports与FastReport哪个更适合你?

下一篇: 组装使用编译的Stimulsoft报表(代码示例)