Hi: 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