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