Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: Invalid Report File Path Post Reply Post New Topic
Author Message
KevinQ
Newbie
Newbie


Joined: 04 Apr 2011
Online Status: Offline
Posts: 3
Quote KevinQ Replybullet Topic: Invalid Report File Path
    Posted: 05 Apr 2011 at 1:30am
Using VS 2008
Trying to create report with ASP.Net for website.
 
Code:
Dim taPetClient As New DataSet1TableAdapters.PetInfoTableAdapter
Dim ds As New DataSet1

Dim PetitionReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument

Me.taPetClient.Fill(ds.PetInfo)

Me.PetitionReport.SetDataSource(ds)

CrystalReportViewer1.ReportSource =

Me.PetitionReport

I am getting the "INvalid Report File Path" error message on  the line
Me.PetitionReport.SetDataSource(ds).
 
The Fill statement above the line that is crashing seems to be working since when I break the program at that point the table has the data in it. 
 
Any suggestions would be helpful
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 05 Apr 2011 at 3:32am
You have created a ReportDocument but not actually loaded a report into it - it is blank with no data source defined in the report itself.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.