Visual Studio 2008 开发的 RDLC 报表程序部署问题 除正常 .net 程序需要的东西外,还需要 (3 个 dll 文件 + 1 个 dll 文件),或者说( 3 个 dll 文件 + 2 个报表查看器安装文件) ------------------------------------------------------------ 1、Microsoft.ReportViewer.Common.dll 2、Microsoft.ReportViewer.WebForms.dll 3、Microsoft.ReportViewer.WinForms.dll 4、Microsoft.ReportViewer.ProcessingObjectModel.dll ------------------------------------------------------------ Microsoft.ReportViewer.Common.resources.dll Microsoft.ReportViewer.WebForms.resources.dll Microsoft.ReportViewer.WinForms.resources.dll ------------------------------------------------------------ ReportViewer.exe (安装) ReportViewerLP.exe (安装,语言资源包,若是中文操作系统,好像没必要) ------------------------------------------------------------
是怎么知道它需要这些东东的呢? 项目属性 –》 发布 –》 “应用程序文件”和“系统必备”看看就知了
选择必备“Microsoft Visual Studio 2008 报表查看器”,发布地址就会多了“reportviewer”文件夹下两个文件“ReportViewer.exe”和”ReportViewerLP.exe”两个文件,解压它们,就知道了。 解压 ReportViewer.exe –> 再解压 “vb_ros.cab” –> 里面有 4 个文件,重命名它们。 解压 ReportViewerLP.exe –> 再解压 “vb_rosl.cab” –> 里面有 3 个文件,重命名它们。 当然,最好是安装它们:“ReportViewer.exe”和”ReportViewerLP.exe” |
|