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.EventArgs) Handles 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