我想在 MVC 4 中使用模型设置 rdlc 报告的数据源
I want to set datasource of rdlc report with model in MVC 4
这里我们绑定Datatable。如何绑定模型而不是数据表??
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DsMemberWiseFine", dtMemberWiseFine));
你需要
使用列表创建您自己的自定义数据
根据自定义数据使用 rdlc 创建报告
我不太会解释,但是你可以访问这个link http://www.codeproject.com/Articles/473844/Using-Custom-Data-Source-to-create-RDLC-Reports
它将为您提供完整的解释、代码和分步过程。
因为我也遇到了你的问题,link解决了
这里我们绑定Datatable。如何绑定模型而不是数据表??
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DsMemberWiseFine", dtMemberWiseFine));
你需要
使用列表创建您自己的自定义数据
根据自定义数据使用 rdlc 创建报告
我不太会解释,但是你可以访问这个link http://www.codeproject.com/Articles/473844/Using-Custom-Data-Source-to-create-RDLC-Reports 它将为您提供完整的解释、代码和分步过程。
因为我也遇到了你的问题,link解决了