Hi,
Can anyone tell me how to create a report using Microsoft report viewer ....
I need to bind the report using code behind....
I tried creating but its giving error....
Code:
Dim report As ReportDataSource
Dim ds As New DataSet1
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local
ReportViewer1.LocalReport.ReportPath = "C:\Documents and Settings\Murali\My Documents\Visual Studio 2008\WebSites\WebSite3\Report2.rdlc"
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WebForms.ReportDataSource("ds", ds.Tables(0)))
ReportViewer1.DocumentMapCollapsed = True
' ReportViewer1.Reset()
Error : A data source instance has not been supplied for the data source 'DataSet1_CountryMaster'.