日期:2014-05-18  浏览次数:20437 次

水晶报表不能读取通过webservice获取的DataSet的表
我在远程做了一个webservice和名为Storage,返回一个dataSet类型的方法名叫GetInStorage,然后在客户端用水晶报表InStorage读取这个DataSet就是读取不到,也不提示有错.我把它绑定一个DataGrid显示就没有问题.怎么会这样呢,请高手指点下


Storage.Storage   st   =   new   HQ.Storage.Storage();
DataSet   ds   =   new   DataSet();
ds   =   st.GetInStorage();
pi.SetDataSource(ds.Tables[0]);
InStorage   pi   =   new   InStorage();
crystalReportViewer1.ReportSource   =   pi;

this.dataGrid1.DataSource   =   ds.Tables[0];




------解决方案--------------------
樓主也太扯了吧!crystalReportViewer的ReportSource屬性是設置水晶報表源,跟數據源沒有任何關系。這樣的問題居然還說成“經典”。
------解决方案--------------------
解决了么?怎么解决的?我正被这个问题困扰