Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 989
  • Last Modified:

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
0
ck_damu
Asked:
ck_damu
  • 3
1 Solution
 
mlmccCommented:
Do you have the Developer editioin of CR8?

mlmcc
0
 
mlmccCommented:
Glad i could help

mlmcc
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now