2016-09-03 91 views
0

我正在研究RDLC報表在窗口複製中。 我的數據正確顯示在報告查看器中。但是當我使用Reportviewer選項點擊導出報告到Excel/Word/PDF時,錯誤閃爍。將報表導出到Excel時RDLC報告錯誤

如何知道里面是什麼的ReportViewer發生,因爲直到這this.reportViewer1.RefreshReport();行沒有錯誤

我發現同樣的問題,但是,有上打印選項
錯誤如何解決這個問題?
我提供鏈接或任何建議

private void RDLSViewer_Load(object sender, EventArgs e) 
     { 
      ReportDataSource datasource = new ReportDataSource("DataSetManifest", dtManifestReport); 
      this.reportViewer1.LocalReport.DataSources.Clear(); 
      this.reportViewer1.LocalReport.DataSources.Add(datasource); 
      this.reportViewer1.RefreshReport(); 
     } 

enter image description here

回答

0

我認爲這是由Visual Studio的窗口布局系統造成的。

轉到窗口選項在Visual Studio工具欄 - >重置Windows佈局

我發現其他人張貼這個...

後 「重置Windows佈局」 dissapeared問題。