Crystal报表查看器打印对话框崩溃 [英] Crystal reports viewer print dialog crash

查看:109
本文介绍了Crystal报表查看器打印对话框崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个使用Crystal-reports 13.0 sp22的vs2010 win应用程序该应用程序部署在5台计算机的工作组上所有PC都可以看到连接到网络的打印机所有PC都可以打印到打印机这个可以从所有程序打印,例如记事本,PDF但不能从我的应用程序打印用户单击查看器按钮进行打印,打印对话框显示但单击打印按钮或单击布局选项卡时应用程序崩溃。





检查事件查看器我收到两个应用程序错误:

数字1:

< pre lang =text>应用程序:InsuranceAgent.exe Framework版本:v4.0.30319描述:由于未处理的异常,进程终止。异常信息:CrystalDecisions.Windows上的CrystalDecisions.Windows.Forms.CrystalReportPrintDialogCustomPanel.UpdateChoices()中的CrystalDecisions.Windows.CrystalReportPrintDialogCustomPanel.GetPaperSizeString(Double,Double)处的System.Globalization.RegionInfo..ctor(Int32)中的System.ArgumentException。 CrystalDecisions.Windows.Forms.CrystalReportPrintDialog.CrystalReportPrintPropertySheetDlgProc(IntPtr,CrystalDecisions.Windows.Forms.Internal.WindowsMessages,IntPtr,IntPtr)中的Forms.CrystalReportPrintDialog.UpdateSelectedPrinterOnPanel()



Number 2:

错误应用程序名称:InsuranceAgent.exe,版本:2.0.6622.2791,时间戳:0x5a876a70错误模块名称:KERNELBASE.dll,版本:10.0.16299.248,时间戳:0x4414ec23异常代码:0xe0434352故障偏移量:0x0000000000014008故障进程ID:0x27fc故障应用程序启动时间:0x01d3a782bfac72fc故障应用程序路径:C:\Program Files(x86)\ PNSoftware \\ Insurance Agent\InsuranceAgent.exe错误模块路径:C:\ WINDOWS \ System32 \ KERNELBASE.dll报告ID:70ffc331-1923-4f03-b06e-e07935328527错误包全名:错误包相关应用程序ID:





这个只在这台电脑上发生所有其他都可以,所有相同的win10操作系统



任何帮助都将深表感谢



提前谢谢大家



什么我试过了:



要在页面设置中使用不同的设置,例如:

检查无打印机(优化屏幕显示)没有运气

在那台PC上尝试了不同的区域设置......

解决方案

你好b $ b

解决了所有问题后

我无法解释为什么但只是如何!!!!!



我改变了区域设置(格式选项卡)到英国美国

任何其他设置都可以不工作,例如。英国英国

有趣的是,在网络上所有其他电脑都有区域设置希腊语和应用程序工作正常



很高兴有一个解释,但至少最后它正在工作...



一切顺利


Nikos


I have created a vs2010 win app that uses Crystal-reports 13.0 sp22 The app is deployed on a work-group of 5 computers There is a printer connected to the network visible from all PCs All PCs can print to the printer except one This one can print from all programs eg notepad, PDF but not from my app The user clicks on the viewers button to print, the print dialog shows up but when print button is clicked or layout tab is clicked the app crashes.


Checking the event viewer I get two application errors:
Number 1:

Application: InsuranceAgent.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException at System.Globalization.RegionInfo..ctor(Int32) at CrystalDecisions.Windows.Forms.CrystalReportPrintDialogCustomPanel.GetPaperSizeString(Double, Double) at CrystalDecisions.Windows.Forms.CrystalReportPrintDialogCustomPanel.UpdateChoices() at CrystalDecisions.Windows.Forms.CrystalReportPrintDialog.UpdateSelectedPrinterOnPanel() at CrystalDecisions.Windows.Forms.CrystalReportPrintDialog.CrystalReportPrintPropertySheetDlgProc(IntPtr, CrystalDecisions.Windows.Forms.Internal.WindowsMessages, IntPtr, IntPtr)


Number 2:

Faulting application name: InsuranceAgent.exe, version: 2.0.6622.2791, time stamp: 0x5a876a70 Faulting module name: KERNELBASE.dll, version: 10.0.16299.248, time stamp: 0x4414ec23 Exception code: 0xe0434352 Fault offset: 0x0000000000014008 Faulting process ID: 0x27fc Faulting application start time: 0x01d3a782bfac72fc Faulting application path: C:\Program Files (x86)\PNSoftware\Insurance Agent\InsuranceAgent.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report ID: 70ffc331-1923-4f03-b06e-e07935328527 Faulting package full name: Faulting package-relative application ID:



This Happens only in this PC all others are ok and all the same win10 OS

Any help will be deeply appreciated

Thank you all in advance

What I have tried:

To use different settings in page setup like:
checking No Printer (optimize for screen display) with no luck
Tried different regional settings as well on that PC ...

解决方案

Hi
​After all the problem was solved
​I cannot explain why but only how !!!!!

I changed the regional settings ( the format tab )​ to English United States
​Any other setting does not work eg. English United Kingdom
​The funny thing is that on the network all other computers they have regional settings Greek and the application is working fine

​Would be great to have an explanation but at least at last it is working ...

All the best

Nikos


这篇关于Crystal报表查看器打印对话框崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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