Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to load crystal report error

Status
Not open for further replies.

FoxT2

MIS
Oct 3, 2003
143
US
Hello,

I have a ASPX.VB web form with a CrystalReportViewer on it and when I execute this code below it errors "Load Report Failed". This same code works just fine on a VB windows form application. Why does it not work in ASPX? The report does exist and is in the solution explorer.

Imports CrystalDecisions.CrystalReports.Engine
______________________________________________
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table

Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo

Dim rptExpensiveProducts As New ReportDocument

rptExpensiveProducts.Load("..\CrystalReport1.rpt")


Thanks,

FoxT
 
Disregard this post I found the solution. It works when I path the file like this...

rptExpensiveProducts.Load("//localhost/LCEtest/CrystalReport1.rpt")


FoxT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top