?
Solved

How to use Crystal Reports 8.0 in ASP

Posted on 2005-03-04
3
Medium Priority
?
970 Views
Last Modified: 2008-01-09
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
Comment
Question by:ck_damu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 13462452
Do you have the Developer editioin of CR8?

mlmcc
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 13462462
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13471601
Glad i could help

mlmcc
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question