Link to home
Start Free TrialLog in
Avatar of ck_damu
ck_damu

asked on

How to use Crystal Reports 8.0 in ASP

Guys,

I have problem with using Crystal Reports 8.0 in ASP. Herez the code.

Dim PathName
Dim Path
 
Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
 
If Not IsObject (session("oApp")) Then
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application")
End If
 
 PathName = Path & "\Reports\InventoryCatalog.rpt"
 Set session("oRpt") = session("oApp").OpenReport( PathName, 1)  
 session("oRpt").MorePrintEngineErrorMessages = False

When I run this Iam getting the following error.
 
Error Type:
Crystal Reports ActiveX Designer (0x80043AC4)
Invalid directory.

and if I include
session("oRpt").database.tables(1).connectionproperties("User ID") = "rinvmmu"
session("oRpt").database.tables(1).connectionproperties("Password") = "rinvmmu111764"

I dont see any error, but I see a blank page.  Please help me with this, Its kind of urgent.

Thanks
Damu
Avatar of Mike McCracken
Mike McCracken

Do you have the Developer editioin of CR8?

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad i could help

mlmcc