打印到非默认打印机时,ReportViewer崩溃 [英] ReportViewer crashes when printing to a non-default printer

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

问题描述

如果我们尝试使用WinForms ReportViewer控件将服务器报告打印到非默认打印机,则应用程序崩溃时出现"尝试读取或写入受保护的内存"。 。 如果将同一台打印机设置为默认打印机,那么一切正常。

If we try to print a server report using WinForms ReportViewer control to a non-default printer the application crashes with "Attempted to read or write protected memory" .  If the same printer is set as default printer then everything works fine.

VS 2005 RTM,winXP,HP LaserJet 5l打印机,但我们所有的打印机型号都有相同的行为。

有没有解决方法或修复此问题?

推荐答案

这个确切的问题也发生在我身上。如果有人有解决方案,请在此处发布。我甚至没有例外,它只是说"[app]已停止工作"我只能将其关闭(或"在线查找解决方案")
This exact problem happens to me as well. If anyone has a solution please post it here. I don't even get an exception, it just says "[app] has stopped working" and I can only close it down (or "Find a solution online")


这篇关于打印到非默认打印机时,ReportViewer崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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