Dim reportDataSource As New ReportDataSource Try With Me.ReportViewer1.LocalReport .ReportPath = "C:\CallReport.rdlc" .DataSources.Clear() End With Dim ds As New OCTCADataSet Dim da As New OCTCADataSetTableAdapters.CallDataTableAdapter da.Fill(ds.CallData) reportDataSource = New ReportDataSource("DataSet1", ds.Tables("CallData")) Me.ReportViewer1.LocalReport.DataSources.Add(reportDataSource) Me.ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.Normal) Catch ex As Exception MsgBox("Could not compile and open that report.") End Try
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)