Hi. (VB6, CR8.5)
I'm creating a program to loop a list of Crystal Reports through a Set Location procedure to change the server location, but I'm not off to a very good start. I've seen this done before and know only enough to be dangerous. I did add the reference Crystal Reports 8.5 ActiveX Designer Runtime Library, but I think I need to register a .dll to make this work. From what I've been reading in this forum I believe the name of it is CRAXDRT.dll. Can someone please tell me if I need to do this, and I really hate to ask this next question... Can someone please tell me HOW to register a .dll? Keep in mind I won't be viewing the report through this app, just change the server location only.
Here are a few lines of my code including the line where I get the error. The error message says "Runtime Error '429' ActiveX component can't create object." Thanks in advance for any comments.
Private Sub cmdSetLocation_Click()
'Crystal 8.5 start
Set CRReport = Nothing
Set CrxApp = Nothing
Set CRReport = New CRAXDRT.Report
'This is the line that gives me the error.
Set CrxApp = CreateObject("crystalruntime.application.9")
Set crxSubReport = Nothing
Set crxSubReport = New CRAXDRT.Report
Set CRXSubReport2 = Nothing
Set CRXSubReport2 = New CRAXDRT.Report
I'm creating a program to loop a list of Crystal Reports through a Set Location procedure to change the server location, but I'm not off to a very good start. I've seen this done before and know only enough to be dangerous. I did add the reference Crystal Reports 8.5 ActiveX Designer Runtime Library, but I think I need to register a .dll to make this work. From what I've been reading in this forum I believe the name of it is CRAXDRT.dll. Can someone please tell me if I need to do this, and I really hate to ask this next question... Can someone please tell me HOW to register a .dll? Keep in mind I won't be viewing the report through this app, just change the server location only.
Here are a few lines of my code including the line where I get the error. The error message says "Runtime Error '429' ActiveX component can't create object." Thanks in advance for any comments.
Private Sub cmdSetLocation_Click()
'Crystal 8.5 start
Set CRReport = Nothing
Set CrxApp = Nothing
Set CRReport = New CRAXDRT.Report
'This is the line that gives me the error.
Set CrxApp = CreateObject("crystalruntime.application.9")
Set crxSubReport = Nothing
Set crxSubReport = New CRAXDRT.Report
Set CRXSubReport2 = Nothing
Set CRXSubReport2 = New CRAXDRT.Report