Hi Everyone,
Can anyone tell me how to create a report using microsoft report viewer.....
But i need to bind the report using code behind...
Pls help me...
I tried the sample code which doesnt work....
End Sub
Can anyone tell me how to create a report using microsoft report viewer.....
But i need to bind the report using code behind...
Pls help me...
I tried the sample code which doesnt work....
VB.NET:
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
End Sub