问题描述
我有一个客户端,谁正在运行Windows 2008 Server 64位。他正在运行我们的软件,它有一个内置的水晶报表查看器功能。
打印对话框不会工作,无论什么。它工作在我们的32位框,我们验证了。我在我们的64位盒子上验证了它,并且打印对话框也没有打开。我在网上做了一些研究。一个建议是设置m_printDlg.UseEXDialog = True。我试过,但是DID不工作...
我现在很沮丧。有没有人遇到类似的问题?
<$ c如果是,请告诉我。 $ c> #RegionMethods
公共覆盖子PrintReport()
'注意:不要在reportviewer中使用bug
'MyBase.PrintReport b
$ b Dim objRpt As ReportDocument = CType(Me.ReportSource,ReportDocument)
如果m_printDlg不为空那么
m_printDlg = New PrintDialog
如果
m_printDlg.PrinterSettings = ReportEngine.GetPrinterSettings(objRpt)
m_printDlg.UseEXDialog = True
'm_printDlg.ShowDialog(Me)
如果m_printDlg.ShowDialog = DialogResult。 OK然后
ReportEngine.PrintReportDocument(objRpt,m_printDlg.PrinterSettings)
结束如果
结束Sub
结束区域
尝试编译您的应用程序以定位任何或目标x64已经任何),看看是否有任何效果。
I have a client, who is running Windows 2008 Server 64 bit. He is running our software, it has a built in crystal report viewer functionality.
The print dialogue just wouldn't work no matter what. It worked on our 32 bit box and we verified it. I verified it on our 64 bit box, and the print dialogue didn't open either. I did some research online. And one suggestion is to set m_printDlg.UseEXDialog = True. I tried that, but that DID NOT WORK EITHER...
I am kind of frustrated now. Has anyone encountered the similar issue? If so, please let me know.
Here is the code snippet.
#Region " Methods "
Public Overrides Sub PrintReport()
' NOTE: Do not use bug in reportviewer
'MyBase.PrintReport()
Dim objRpt As ReportDocument = CType(Me.ReportSource, ReportDocument)
If m_printDlg Is Nothing Then
m_printDlg = New PrintDialog
End If
m_printDlg.PrinterSettings = ReportEngine.GetPrinterSettings(objRpt)
m_printDlg.UseEXDialog = True
'm_printDlg.ShowDialog(Me)
If m_printDlg.ShowDialog = DialogResult.OK Then
ReportEngine.PrintReportDocument(objRpt, m_printDlg.PrinterSettings)
End If
End Sub
End Region
Try compiling your application to target any or target x64 (if already any) and see if that has any effect.
这篇关于打印对话框在64位机器上的Crystal Report Viewer中不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!