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