Skip to Content
0
Former Member
Jun 29, 2009 at 06:59 AM

No Valid Report Source Available

80 Views

Hi,

In my ASP.Net application I have created a CR 2008 report which uses a Dataset as the report source. The report is working fine and it displays the report data. But when I tried to navigate to the next page I'm getting the message ("No Valid report source available").

In my ASPX page I placed a (Show) button when the user clicked on it I load the report data and show the report using ReportDocument object. It seems that the report source is lost somehow after the first post back. I don't know if this is the cause of the problem?

Sub btnShow_Click

rd = New ReportDocument

rd.Load(ReportPath() & "ReportName.rpt")

ds = CreateReportDataset()

rd.SetDataSource(ds)

Me.rptViewer.ReportSource = rd

End Sub

Please I need your help.

Thank you.