Click here to Skip to main content
15,887,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created report in WPF application and try to attach data source.But my report is not loading only showing loading icon.Please check code and image what I have done and suggest solution if you have any.
C#
IEnumerable<Voucher> voucherList = new Common().GetVouchers(_fromDate, _toDate).Where(x => _selected.Contains(x.ID)).ToList();

//reportDataSource.Value = voucherList
this._reportViewer.LocalReport.ReportPath = @"D:\Project\BBApp\BBApp\ReportVoucher.rdlc"; // Path of the rdlc file

this._reportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", voucherList));
//this._reportViewer.LocalReport.Refresh();
this._reportViewer.RefreshReport();


but report is not loading.Please check screen shot
REport Dataset

Application in Run mode
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900