文檔金喜正規(guī)買球>>FastReport中文文檔>> .Net 對(duì)象
.Net 對(duì)象
在腳本中,您可以使用以下程序集中定義的任何 .Net 對(duì)象:
System.dll System.Drawing.dll System.Windows.Forms.dll System.Data.dll System.Xml.dll
點(diǎn)擊復(fù)制
除此之外,您還可以使用 FastReport 程序集中定義的任何對(duì)象。如果需要訪問其他程序集,請(qǐng)將其添加到程序集列表中。這可以在 "Report|Options...(報(bào)告|選項(xiàng)...)"菜單中選擇 "Script(腳本)"選項(xiàng)卡來完成:
例如,如果要在報(bào)告中使用在應(yīng)用程序中聲明的函數(shù),請(qǐng)?jiān)趫?bào)告程序集列表中添加應(yīng)用程序程序集(.exe 或 .dll)。然后就可以使用應(yīng)用程序的命名空間調(diào)用該函數(shù)。例如,應(yīng)用程序中定義了以下函數(shù):
namespace Demo { public static class MyFunctions { public static string Func1() { return"Hello!"; } } }
點(diǎn)擊復(fù)制
string hello = Demo.MyFunctions.Func1();
點(diǎn)擊復(fù)制
string hello = MyFunctions.Func1();
點(diǎn)擊復(fù)制
如需下載fastreport最新試用版,請(qǐng)點(diǎn)產(chǎn)品名跳轉(zhuǎn)產(chǎn)品下載頁>>