Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

WinForms Report View and Report (rldc) - Able to Set my custom dataset but only getting the first record

$
0
0

I am trying out WinForms Report viewer using an embedded report (rldc) in a Windows Application

I have created a dummy dataset based on a SQL View, and built the report using those fields. 

When I run the application, I populate a dataset and assign it to the Report.  However, the report only shows the first record.  I've examined the dataset at each point along the way and the three records I'm sending are there.  But when the report displays, only one shows. 

First time I'm using the Report Viewer, I usually use a Crystal report.

Here is my code.

  Public Sub New(ds As DataSet)        InitializeComponent()        dsLocal = ds  End Sub    Private Sub rvBinLabel_Load(sender As System.Object, e As System.EventArgsHandles MyBase.Load        Dim rptDataSource As New ReportDataSource        With rptDataSource            .Name = "dsBinLabels"            .Value = dsLocal.Tables(0)        End With        With mrvBinLabel            .Reset()            .ProcessingMode = ProcessingMode.Local            With .LocalReport                .ReportEmbeddedResource = "MoldLabelApp.rptBinLabel.rdlc"                .DataSources.Clear()                .DataSources.Add(rptDataSource)                .Refresh()            End With            .Refresh()            .RefreshReport()        End With    End Sub

 


Tim Conway


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>