Analytics

2018年5月15日 星期二

[ReportViewer]如何 抽取ReportViewer所需組件讓Server不需另外安裝軟件(How to extract the required components of ReportViewer so that Server does not need to install additional software.)


問題

如何 抽取ReportViewer所需組件讓Server不需另外安裝軟件


解決方法

1.將以下內容存成.bat檔後執行
@SET destFolder=.\bin
@XCOPY /I /Y %SYSTEMDRIVE%\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll %destFolder%\
@XCOPY /I /Y %SYSTEMDRIVE%\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.dll %destFolder%\
@XCOPY /I /Y %SYSTEMDRIVE%\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.DataVisualization\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.DataVisualization.dll %destFolder%\
@XCOPY /I /Y "%SYSTEMDRIVE%\Program Files\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.WinForms.dll" %destFolder%\
@XCOPY /I /Y "%SYSTEMDRIVE%\Program Files\Microsoft Visual Studio 10.0\ReportViewer\zh-CN" %destFolder%\zh-CN\
@explorer.exe %destFolder%

@XCOPY /I /Y "%SYSTEMDRIVE%\Program Files\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.DataVisualization.dll" %destFolder%\
@XCOPY /I /Y "%SYSTEMDRIVE%\Program Files\Microsoft Visual Studio 10.0\ReportViewer\zh-CN" %destFolder%\zh-CN\
@explorer.exe %destFolder%

2.複製C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer下的檔案
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WinForms.dll

沒有留言:

熱門文章