带有Rdlc报告的WPF [英] WPF with Rdlc report

查看:112
本文介绍了带有Rdlc报告的WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在WPF应用程序中创建了报告并尝试附加数据源。但是我的报告没有加载只显示加载图标。请检查代码并对我所做的事情进行图像处理并提出解决方案(如果有的话)。

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.

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();





但报告未加载。请检查屏幕截图

报告数据集



运行模式下的应用

推荐答案

这篇关于带有Rdlc报告的WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆