轉帖|其它|編輯:郝浩|2011-04-25 13:51:26.000|閱讀 785 次
概述:本文主要介紹使用StiReport report時訪問變量的一些問題,希望對大家有幫助。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
訪問變量時,你會用到以下代碼:
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")
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:網絡轉載