Print dialog box Does not appear in Crystal Report Viewer on a 64-bit machine

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

+4
source share
1 answer

Try compiling the application to target any or target x64 (if it already exists) and see if this has an effect.

-1
source

Source: https://habr.com/ru/post/1305165/


All Articles