VB6 App crashes when initialising Crystal Reports XI SP6 References in Form
Posted on 2016-10-20
I am adding some reporting capability to a longstanding VB6 application using Crystal Reports X1 R2 SP6 Developer Edition. The development PC is Win 7 32bit. Everything works exactly as it should both in the IDE and as a compiled application on the same PC.
Created an installer within VB6 but had numerous issues with Crystal not finding dependency files. Come back to that issue later.
Installed Crystal Report X1 R2 SP6 on client PC's manually - regular edition.
Installed the app on the two client PC's both 64bit one Win 10 and the other Win 7. The app runs fine however when it comes to executing the following lines the app crashes immediately with unhandled exception and no real information provided by debugger.
Dim appln As New CRAXDRT.Application
Dim ConnectionInfo As CRAXDRT.ConnectionProperties
Public crReport As New CRAXDRT.Report
Public crDatabaseField As CRAXDRT.DatabaseFieldDefinition
The CRAXDRT file is located in C:\Program Files (x86)\Business Objects\Common\3.5\bin on both pc's.
Crystal reports works fine on both pc's and is able to open the defined reports and produce the relevant report from the database attached.
I would appreciated any pointers please to get the app working with Crystal on the client PC's.