I am using a DLL compiled in VB6 that references the CRAXDRT.DLL (crystal reports object) to print reports. This is being utilised by several users from a windows 2k server via ASP pages on an intranet.
This works perfectly well for a period of time, then starts to get an ‘Error 5 Invalid Procedure Call or Argument’ on the line
‘Set crxApp = New CRAXDRT.Application’.
Code used:
Dim crxApp As CRAXDRT.Application
Dim crxReport As CRAXDRT.Report
Set crxApp = New CRAXDRT.Application
Set crxReport = crxApp.OpenReport(xxxx)
With crxReport.Database.Tables(1)
.SetLogOnInfo "", "", "<<Use Integrated Security>>", ""
End With
crxReport.PrintOut False
Set crxReport = Nothing
Set crxApp = Nothing
The crystal report is saved with an OLE DB connection to the database because integrated security is used.
A reboot of the server clears the problem for a period of time before it re-appears, this points to memory leakage but it only affects crystal reports.
Any ideas would be appreciated.
This works perfectly well for a period of time, then starts to get an ‘Error 5 Invalid Procedure Call or Argument’ on the line
‘Set crxApp = New CRAXDRT.Application’.
Code used:
Dim crxApp As CRAXDRT.Application
Dim crxReport As CRAXDRT.Report
Set crxApp = New CRAXDRT.Application
Set crxReport = crxApp.OpenReport(xxxx)
With crxReport.Database.Tables(1)
.SetLogOnInfo "", "", "<<Use Integrated Security>>", ""
End With
crxReport.PrintOut False
Set crxReport = Nothing
Set crxApp = Nothing
The crystal report is saved with an OLE DB connection to the database because integrated security is used.
A reboot of the server clears the problem for a period of time before it re-appears, this points to memory leakage but it only affects crystal reports.
Any ideas would be appreciated.