VB.NET - Trouble Opening Crystal Reports on a 64-bit machine.(VS2010)

Asked By phillip ngulube on 28-Aug-12 11:21 AM

What could I not be doing right; When I deploy my application on a 32-bit machine (Win 7) all is well (the application was

developed on a 32-bit machine). However, if I deploy the application on a 64-bit machine (Win7), all is OK except opening

Crystal Reports which crushed the application.
 I have installed the  Runtime library CRRuntime_64bit_13_0_3.msi on the

64-bit machine (just as I have installed CRRuntime_32bit_13_0.msi on the 32-bit machine).

Furthermore the application automatically opens the crystal  reports using the code from the attched module.
Any help!

Code:

Module mdl_CrystalReports


    Public RptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument

    Public Sub DisplayReport(ByVal pCrystalRpt As String)

      Try

        Dim pReportName As String = pCrystalRpt

        Dim pUIObjectID As Integer

        Dim BoolSuccess As Boolean = True

        pReportName = pReportName.Trim

        .

        .

        .

        .

        .


        RptDoc.Load(fnFullRptPath(pReportName)) 'fnFullRptPath() is a function 
                           that 
returns the full path of the report.

        RptDoc.Refresh ()

        frm_ReportDisplayer.CrystalReportViewer1.ReportSource = RptDoc

        frm_ReportDisplayer.Refresh()

        frm_ReportDisplayer.ShowDialog ()

      Catch ex As Exception

        ‘some error reporting code goes here….

      End Try

    End Sub


Tom Wilson replied to phillip ngulube on 29-Aug-12 09:08 AM
I doubbt this will solve your problem, but there is a service pack 4 for both the 32 and 64 bit runtimes.  Since your report works with 32 bit service pack 3, it should work with 64 bit service pack 3.  You can view the fixes in service pack 4 and download the service pack 4 version at this link:

http://scn.sap.com/docs/DOC-7824
phillip ngulube replied to Tom Wilson on 04-Sep-12 07:11 PM
Tried this path, but still not working.