I am encountering some error with my code.
Code:
If Not IsObject (Session("oApp")) Then
Set Session("oApp") = Server.CreateObject("CrystalRuntime.Application.9")
End If
Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
If IsObject(Session("oRpt")) Then
Set Session("oRpt")=Nothing
End If
'--open the report--'
Set Session("oRpt") = Session("oApp").OpenReport(path & m_ReportName, 1)
the error is
Quote:
Microsoft VBScript runtime error '800a01fb'
An exception occurred: 'Session(...).OpenReport'
/reports/report.asp, line 161
|
and on line 161 is this code
Code:
Set Session("oRpt") = Session("oApp").OpenReport(path & m_ReportName, 1)
I am using ASP, Crystal Report 9 and My Server OS is Advanced Server 2000
I am really clue less on this problem and I really need some experts help.
Thanks.
BTW.. I have many report and only one report is experiencing that error.