cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment of Visual Basic program in Windows Vista

Former Member
0 Kudos

I was using Crystal Reports X1 Development Edition to distribute a Visual Basic 6 Program, with attached Crystal reports (.rpt) files.

The distributed program worked fine on Windows XP, but crashed when installed on Windows Vista operating systems.

Following advice from my last thread, I then updated to CR XI release 2 and used the XI r2 merge modules:

CrystalReports11_5_RDC_License.msm dated 20/7/2008

CrystalReports11_5_RDC_Reportengine.msm dated 20/7/2008

CrystalReports11_5_RDC_Runtime.msm dated 20/7/2008

These were used in Visual Studio Installer 1.1 to make a .msi installer package to distribute to my users. (I also downloaded the latest CRViewer)

The Installer package failed to install correctly on a computer with Windows Vista, with the following error message:

u201CModule C:\Program Files\ExamPlanner\craxdrt.dll failed to registeru201D HRresult -2147024770 u2013 contact your support personnelu201D

I have a licensed copy of Crystal Reports X1 Development Edition, and I assume this covers release 2

The Licence Key code is imbedded in the VB code when loading CRViewer as follows:

Private Sub Form_Load()

Dim Application As New CRAXDRT.Application

Dim Report As CRAXDRT.Report

Application.SetLicenseKeycode ("The Key code is inserted here")

Set Report = Application.OpenReport(CRReport)

Screen.MousePointer = vbHourglass

CRViewer1.ReportSource = Report

CRViewer1.ViewReport

Screen.MousePointer = vbDefault

Set Report = Nothing

End Sub

Can anyone help?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Subsequently I realised that my VB program was still using:

Crystal ActiveX Report Viewer Library 11.0 as both a component and a reference, and

Crystal Reports ActiveX Designer Runtime Library 11.0 as a reference

I changed this to:

Crystal ActiveX Report Viewer Library 11.5, and

Crystal Reports ActiveX Designer Runtime Library 11.5

I then re-compiled and rebuilt the Installer package, and it looks to be SUCCESSFUL!

Thank you to everyone for your help!