title: Loading .rdlc report in Reportviewer manually in VB.Net
body: <p>I need a serious help in reportviewer.<br>
  I seen a lot links, tried a lot codes every way but cannot find a proper solution.
  Please make me understand and clear my doubts even.<br>
  Totally confused which dataset to select during code and what is datasource.value thing which gives me error everytime...<br></p>
  
  <p>I am showing the steps how I created the report and trying to make it work. This because I might have done any mistake in creating the reports and you people may catch it.</p>
  
  <p>Now the problem is described below,
  I have many .rdlc reporting my project.
  What I done is <br></p>
  
  <p>Note : Reportviewer containing form name is <strong>Reports.vb</strong><br>
  RDLC reports are Reports1.rdlc,Report2.rdlc,...</p>
  
  <p>1) Created Report like Add -> New Item -> Reporting -> Report -> Report1.rdlc<br>
    Report Name: Report1.rdlc</p>
  
  <p>2) Then I add dataset from here like this … <br><br>
  <a href="https://i.stack.imgur.com/0USsU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0USsU.png" alt="enter image description here"></a></p>
  
  <p>3) DataSet properties opens, it even opens DataSource configuration Wizard.
  I select stored procedures because I want to fetch data from my stored procedures and pressed Finish.<br>
  Here DataSet Name is <strong>BonnyDataSet</strong></p>
  
  <p><a href="https://i.stack.imgur.com/dQpFA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dQpFA.png" alt="enter image description here"></a></p>
  
  <p>4) After that, I select data source from dataset properties… <br>
  Now what is this Available datasets here in the last…??? <br>
  And which dataset I have to consider during loading in ReportViewer??? <br></p>
  
  <p><a href="https://i.stack.imgur.com/Tmh90.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Tmh90.png" alt="enter image description here"></a></p>
  
  <p>5) Now I organised the column by adding the data columns from dataset1 shown below…</p>
  
  <p><a href="https://i.stack.imgur.com/dnAJ3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dnAJ3.png" alt="enter image description here"></a></p>
  
  <p>6) Now I added Reportviewer in form Reports.vb and tried a lot of codes….
  <br>Showing some of them here.</p>
  
  <pre><code>Private Sub Reports_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          Try
              'Select Case PubRepVar
              'Case "AccMast"
              Dim data As New BonnyDataSet
              Dim rds = New ReportDataSource("BonnyDataSet", data)
              ReportViewer.LocalReport.DataSources.Clear()
              ReportViewer.LocalReport.DataSources.Add(rds)   ‘------error here
              ReportViewer.LocalReport.ReportEmbeddedResource = "YourProjectNamespace.Report1.rdlc"
              ReportViewer.RefreshReport()
              'End Select
  
          Catch ex As Exception
              MessageBox.Show(ex.Message, My.Application.Info.Title, MessageBoxButtons.OK, MessageBoxIcon.Error)
          End Try
      End Sub
  </code></pre>
  
  <p>I get the error as following:</p>
  
  <blockquote>
    <p>BC30311 : Value of type 'ReportDataSource' cannot be converted to
    'ReportDataSource'</p>
  </blockquote>
  
  <p>I have no Idea on this error.</p>
  
  <p>Another code I tried is 
  ReportViewer.ProcessingMode = ProcessingMode.Local</p>
  
  <pre><code>        Dim localReport As LocalReport
          localReport = ReportViewer.LocalReport ‘-------error here
  
          localReport.ReportEmbeddedResource =
              "ReportViewerIntro.Report1.rdlc"
  
          Dim dataset As New DataSet("BonnyDataSet")
  </code></pre>
  
  <p>Here error shows like : </p>
  
  <blockquote>
    <p>BC30311 :  Value of type 'LocalReport' cannot be converted to
    'LocalReport'.</p>
  </blockquote>
  
  <p>And I tried many other but can’t understand what the problem is.
  Am I doing something wrong during the creation of .rdlc reports???<br></p>
  
  <p>Needed help eagerly. Thanx</p>