IDE升級到VS2017以後,出現瞭如題所示的報錯,從新引用DLL的方法以下:orm
一、右鍵引用,選擇添加引用。blog
二、左側選擇瀏覽,下面點擊瀏覽按鈕。引用
三、分別添加Microsoft.ReportViewer.Common.DLL及Microsoft.ReportViewer.WinForms.DLL兩個庫文件,路徑以下:方法
C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\12.0.0.0__89845dcd8080cc91im
C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\12.0.0.0__89845dcd8080cc91img