文檔半島外圍網上直營>>FastReport中文文檔>> .Net 對象
                .Net 對象
在腳本中,您可以使用以下程序集中定義的任何 .Net 對象:
System.dll System.Drawing.dll System.Windows.Forms.dll System.Data.dll System.Xml.dll
點擊復制
	
除此之外,您還可以使用 FastReport 程序集中定義的任何對象。如果需要訪問其他程序集,請將其添加到程序集列表中。這可以在 "Report|Options...(報告|選項...)"菜單中選擇 "Script(腳本)"選項卡來完成:
	 
 
例如,如果要在報告中使用在應用程序中聲明的函數,請在報告程序集列表中添加應用程序程序集(.exe 或 .dll)。然后就可以使用應用程序的命名空間調用該函數。例如,應用程序中定義了以下函數:
namespace Demo
{
  public static class MyFunctions
  {
    public static string Func1()
    {
      return"Hello!";
    }
  }
}
	點擊復制
string hello = Demo.MyFunctions.Func1();
點擊復制
string hello = MyFunctions.Func1();
點擊復制
如需下載fastreport最新試用版,請點產品名跳轉產品下載頁>>

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網安備
            50010702500608號
渝公網安備
            50010702500608號
             
            
 客服熱線
客服熱線