Thank you so much for replying! I hope you can help me get this straightened out.
The app was built on my machine, Windows XP Pro. I am not sure how to build an installation routine that would take into account any differences of dll files. I am using Wise, and am under the impression that it will not install an older dll file. The Windows 98 machine supposedly has this dll file, but I don't know in what directory. It's at a customer's site, and my boss doesn't get out there very often. However, I'm fairly certain they are using Crystal Reports v7.
The actual error occurs the first time the report object is called. In my main form, I declare the report object:
Code:
Public oReports As New CrReports
This gets called when the user presses the reports button:
Code:
frmMain.oReports.ReportClick frmMain.APP_MODE
I have a debugging statement before that:
Code:
frmMain.LOG_FILE.WriteLine "Going to initialize class CrReports"
and it is the last thing in the debug file before the runtime error.
Here's a little bit from my reports class:
Code:
Dim Application As CRPEAuto.Application
Dim Report As CRPEAuto.Report
Dim View1 As CRPEAuto.View
Public WithEvents Window1 As CRPEAuto.Window
Public Sub ReportClick(inMode)
If inMode = 1 Then ' RMA
ShowReport "RMA.rpt", inMode
ElseIf inMode = 2 Then ' Non-MDSE
ShowReport "Credit.rpt", inMode
ElseIf inMode = 3 Then ' Feedback
ShowReport "Feedback.rpt", inMode
End If
End Sub
Private Sub Class_Initialize()
'Assign application object
Set Application = CreateObject("Crystal.CRPE.Application")
frmMain.LOG_FILE.WriteLine "Initialized Class CrReports"
End Sub
The debugging line "Initialized Class CrReports" never shows up in the debug file.
I hope I have answered all of your questions. Does this make sense? Something else that's nagging me is the version of Crystal. I believe that CRPE is for v7 (is that right?) and that corresponds to the cpeaut32.dll file. I have included in my references craxdrt.dll, which is 8.5 ActiveX Designer Runtime Library. However, I don't believe it's used (I can remove it and never get a runtime or compilation error) and from what I've read elsewhere, that's "CrystalRuntime.Application" which I'm not creating. The reports were created with v8. I really don't know if any of this is relevant.
Thanks a bunch!