RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms
来源:互联网 发布:软件使用说明模板 编辑:程序博客网 时间:2024/06/10 14:41
RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms
做一下记录顺便帮助一下遇到问题的朋友。
做RDLC报表在WinForm运行,在VS里面调试引用了“Microsoft.ReportViewer.Common.dll”和“Microsoft.ReportViewer.WinForms.dll”调试运行的时候没有问题。
之后我直接把Bin文件夹下的Debug目录拷到别的机器上运行,打印的时候出现了“未能加载文件或程序集microsoft.reportviewer.winforms”的错误。这是貌似因为在调试
运行的时候Bin目录的引用的DLL是本地路径下的,没有打包成安装程序在程序目录下没有这两个DLL,于是把这两个DLL文件拷贝到程序运行目录下重新在引用。紧接着又蹦出
了一个错误。具体的忘记了,大概是 on print Processing 什么的错误,这个问题测试了一下如果在运行软件的目标机器上 安装了 ReportViewer就不会有这个问题了,可是又
不能在每个客户机上都安装一遍ReportViewer。
解决这个问题:
1、可以把ReportViewer.exe文件解压出来。
2、找到里面的扩展名为“cab”的文件,继续解压。
3、找到扩展名为“cab”文件解压后目录里的“FL_Microsoft_ReportViewer_ProcessingObject_125592_125592_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8”。
4、把这个文件拷贝出来更改名称为“Microsoft.ReportViewer.ProcessingObjectModel.dll”。
最后把这个DLL文件放入Bin文件目录下在到VS里面引用一下。OK问题解决了!
- RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms
- RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms
- RDLC报表 在WinForm里运行出现 "microsoft.reportviewer.processingobjectmodel未能加载"
- 未能加载文件或程序集Microsoft.ReportViewer.WinForms
- 未能加载文件或程序集microsoft.reportviewer.winforms
- RDLC 未能加载文件或程序集 Microsoft.ReportViewer
- 未能加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectModel
- 在Visual Studio 2010的WinForm中使用水晶报表运行错误—— 未能加载文件或程序集
- 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0
- 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0
- 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0
- 未能加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0...错误问题的解决
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项
- 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项
- winform项目中 ”未能加载文件或程序集“ 问题
- Java学习笔记之集合框架3
- php中mysqli替换mysql_result的官方方法
- SYSENTER指令
- Java代码优化
- IE8浏览器中Image对象onload失效的解决办法
- RDLC报表 在WinForm里运行出现 未能加载文件或程序集microsoft.reportviewer.winforms
- C产生随机数
- 杭电2024 C语言合法标识符
- Reviewboard2.0以上版本真心不好用
- [译] React 入门指南
- 【基础练习】【栈】codevs2058 括号匹配题解
- Code Complete读书(六)-可以工作的类
- mx:Tree改变父节点与子节点的样式
- 设计模式的六大原则