我已經完成了一個通過特定數據生成報表的asp.net應用程序。最初我創建了本地報告(.rdlc)來生成報告。我爲每個rdlc創建了單獨的.xsd並設計了這些報告。我以編程方式構建數據集並將其綁定到rdlc。我用下面的代碼爲數據源綁定到報告 -以編程方式將報表服務器中的數據源綁定到報表服務器 - SSRS
rptMyReport.LocalReport.ReportPath = Server.MapPath(srdlcName);
rptMyReport.LocalReport.DataSources.Add(rds);
現在我已經轉換所有RDLC到RDL以下this msdn article,我已經發布到報表服務器的報告。
rptMyReport.ServerReport.ReportServerUrl = new System.Uri("http://ReportServer/ReportServer");
rptMyReport.ServerReport.ReportPath = "/ReportFolder/ReportName";
現在我怎樣才能以編程方式設置數據源的報告?
謝謝。那樣做了! – NLV 2010-03-02 05:58:29