打印时出现问题 [英] Problem during printing

查看:180
本文介绍了打印时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过visual studio 2012制作了一个小程序,其中包含使用报表查看器的打印程序

它在我的电脑上工作正常,但在使用Advanced Installer程序部署程序并将其安装在另一台PC上之后在打印表单中出现错误,如下图所示

http:// a .up-00.com / 2019/02 / 155040341568781.png [ ^ ]



引用:

本地报告处理期间发生错误

报告的定义''无效

报告处理中发生意外错误

无法加载文件或程序集'Microsoft.SqlServer.Types,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件。





我尝试过:



如何解决这个问题?

如果没有任何错误,部署程序的最佳方法是什么?

解决方案

< blockquote>由于某种原因,您的应用程序所需的SQL程序集的特定版本未安装在计算机上,或者它所依赖的文件之一。可能是我们在GAC中安装了更高版本,因此您的安装程序跳过添加旧版本,但我们无法从这里说出来。



我'建议联系编写Advanced Installer的人 - 我从来没有听说过它,更不用说它了 - 直接向他们寻求帮助,因为他们无疑会知道它比我们做得更好!


原因是该文件应该安装

 SQLSysClrTypes 





之后它运作良好



全部谢谢


I've made a small program by visual studio 2012 contain print procedure using report viewer
it's working ok in my PC , but after deploying program using Advanced Installer program and install it in another PC it gives error in printing form as shown in the following picture
http://a.up-00.com/2019/02/155040341568781.png[^]

Quote:

An error occurred during local report processing
The definition of the report '' is invalid
An unexpected error occurred in Report Processing
Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.



What I have tried:

How can I solve this Problem ?
And what's the best way to deploy my program without having any error ?

解决方案

For some reason the specific version of the SQL assembly that your app needs is not installed on the machine, or one of the files it depends on. It may be that there us a later version installed in the GAC so your installation program skipped adding the older version, but we can't tell from here.

I'd suggest contacting the people who wrote Advanced Installer - I've never heard of it, much less used it - and asking them for help directly as they will undoubtedly know how it does things a lot better than we will!


The reason was that file should be install

SQLSysClrTypes



after that it working well

Thanks for all


这篇关于打印时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆