Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Manila, Philippines

    Unanswered: Help on Reporting

    I am encountering some error with my 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)                                               
    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

    Microsoft VBScript runtime error '800a01fb'

    An exception occurred: 'Session(...).OpenReport'

    /reports/report.asp, line 161
    and on line 161 is this 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.


    BTW... I have many reports on my application and only one report is experiencing that problem

  2. #2
    Join Date
    Feb 2007
    I'm not the best person to answer this but it looks like you are trying to break the report file name and the path into two with iLen and Path. Then you are putting path and M_ReportName together to try and get the same things. It doesn't look like M_ReportName has anything in it.

    but I may be reading the above wrong.

  3. #3
    Join Date
    Feb 2007
    Double Post, apologies

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts