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("P ATH_TRANSL ATED")
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("Cryst alRuntime. Applicatio n")
End If
PathName = Path & "\Reports\InventoryCatalog .rpt"
Set session("oRpt") = session("oApp").OpenReport ( PathName, 1)
session("oRpt").MorePrintE ngineError Messages = 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.t ables(1).c onnectionp roperties( "User ID") = "rinvmmu"
session("oRpt").database.t ables(1).c onnectionp roperties( "Password" ) = "rinvmmu111764"
I dont see any error, but I see a blank page. Please help me with this, Its kind of urgent.
Thanks
Damu
I have problem with using Crystal Reports 8.0 in ASP. Herez the code.
Dim PathName
Dim Path
Path = Request.ServerVariables("P
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("Cryst
End If
PathName = Path & "\Reports\InventoryCatalog
Set session("oRpt") = session("oApp").OpenReport
session("oRpt").MorePrintE
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.t
session("oRpt").database.t
I dont see any error, but I see a blank page. Please help me with this, Its kind of urgent.
Thanks
Damu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad i could help
mlmcc
mlmcc
mlmcc