2012-07-28 273 views
1

我正在使用SQLITE數據庫,並希望在使用C#的Windows應用程序中使用報表查看器來顯示報表。我的代碼是RDLC報告查看器不在報告查看器中顯示數據?

DataSet ds=rel.show_data1("site_master"); 
this.reportViewer1.Reset(); 
ReportDataSource rds = new ReportDataSource("test_rds", ds.Tables[0]); 
reportViewer1.LocalReport.DataSources.Clear(); 
reportViewer1.LocalReport.DataSources.Add(rds); 
reportViewer1.Visible = true; 
reportViewer1.LocalReport.Refresh(); 

但我無法查看報告頁面上的數據。請幫助。如果你有任何有用的鏈接,請給我,因爲我是非常新的報告。由於

+0

的路徑你有你的頁面加載一個的IsPostBack? – Kerieks 2013-08-20 08:45:57

回答

0

我覺得你沒有提供的報告就像

ReportViewer1.ProcessingMode = ProcessingMode.Local; 
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report.rdlc");