轉帖|使用教程|編輯:龔雪|2016-01-19 10:43:30.000|閱讀 826 次
概述:本篇文章將闡述首次使用 ActiveReports 報表控件 的方法,包括添加報表文件、綁定數據源以及如何發布報表等內容。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
主要內容包括:
打開視圖里面的報表資源管理器,添加數據源
填寫數據鏈接信息
打開視圖里面的報表資源管理器,在數據源下添加數據集
增加查詢語句
Table可以直接選取需要的字段
string file_name = @"..\..\RdlReport1.rdlx"; GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name)); GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport); viewer1.LoadDocument(pageDocument);
設置 ActiveReports 報表控件 DLL 復制本地屬性為 True:
VS2010 + .NET 4.0 + AR
點擊區域報表 Detail 區域的數據源按鈕:
SectionReport1 sr = new SectionReport1(); sr.Run(); this.viewer1.Document = sr.Document;
設置ActiveReports報表控件DLL復制本地屬性為True:
重新編譯后拷貝Release文件到客戶端即可使用。
VS2010 + .NET 4.0 + AR
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網