I have a client that has a 64-bit version of Windows 2008 Server. He runs our software, it has a built-in Crystal report viewer.
The print dialog will not work for anything. He worked on our 32-bit box, and we checked it. I checked this on our 64-bit field, and the print dialog did not open. I did some research online. And one suggestion is to set m_printDlg.UseEXDialog = True. I tried this, but it DOES NOT WORK ...
I'm upset right now. Has anyone encountered a similar problem? If yes, let me know.
Here is a snippet of code.
#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
Final region
source share