读书人

水晶报表 无效报表文件路径,该如何解

发布时间: 2012-01-06 22:55:18 作者: rapoo

水晶报表 ,无效报表文件路径

DataSet ds = new DataSet();
myAdapter.Fill(ds, "mySet ");

ReportDocument oCR = new ReportDocument();
oCR.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = oCR;

---------------------------------------------
oCR.SetDataSource(ds); 这句报错 : 无效报表文件路径

不明白。。请大家指教,谢谢!!

[解决办法]
ReportDocument oCR = new ReportDocument();
OCR.Load(myReportName);
oCR.SetDataSource(ds);

读书人网 >C#

热点推荐