我已经完成了一个通过特定数据生成报表的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