文檔半島外圍網(wǎng)上直營>>FastReport中文文檔>>注冊數(shù)據(jù)
注冊數(shù)據(jù)
如果使用 WebReport 組件的 "智能標(biāo)簽 "菜單選擇數(shù)據(jù)源,則無需手動注冊數(shù)據(jù)。在這種情況下,F(xiàn)astReport.Net 會將數(shù)據(jù)源名稱存儲在 WebReport 組件的 ReportDataSources 屬性中。
如果不想使用這種方法注冊數(shù)據(jù),則需要手動注冊。這可以通過使用 WebReport 組件的 StartReport 事件來完成。在該事件處理程序中,可以調(diào)用報告的 RegisterData 和 RegisterDataAsp 方法。可以通過 WebReport.Report 屬性訪問報告:
webReport1.Report.RegisterData(myDataSet);
點擊復(fù)制
在本節(jié)中閱讀有關(guān)注冊數(shù)據(jù)的更多信息。
如需下載fastreport最新試用版,請點產(chǎn)品名跳轉(zhuǎn)產(chǎn)品下載頁>>