4

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

Terrance
  • 11,764
  • 4
  • 54
  • 80
doglin
  • 1,651
  • 4
  • 28
  • 38
  • 1
    Wondering if you ever got a solution for this. The print button on the crystal report viewer on win 7 64 bit machine does not open the default print dialog at my end. Pls share if you have any inputs. – schar Nov 11 '10 at 20:09

1 Answers1

-1

Try compiling your application to target any or target x64 (if already any) and see if that has any effect.

Tom Studee
  • 10,316
  • 4
  • 38
  • 42