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