create report using microsoft report viewer

ChinnuBlr

Member
Joined
Sep 30, 2009
Messages
10
Programming Experience
Beginner
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....

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
 

Latest posts

Back
Top