使用Stimulsoft Reports时如何访问变量

作者:mayz    来源:慧都控件网    浏览:Loading...      日期:2012-09-10

访问变量时,你会用到以下代码:

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("VariableName") = " Value "

'Get Variable
Dim Value As Object= Report("VariableName")

Tag标签:Stimulsoft Stimulsoft Reports 

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

上一篇: 如何使用Stimulsoft Reports保存和加载报表?

下一篇: 如何在Stimulsoft Reports.Net中创建变量