If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > create report using microsoft report viewer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-09, 02:37
ChinnuBlr ChinnuBlr is offline
Registered User
 
Join Date: Aug 2009
Posts: 12
create report using microsoft report viewer

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'.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On