我必须使用MVCReportViewer加载报告一个MVC4应用程序,但是子报表没有加载并返回该错误:MVCReportViewer错误加载子报表
Data retrieval failed for the subreport, 'Actions',
located at: C:\Projects\Report\ReportActions.rdlc.
Please check the log files for more information.
这里是我的视图代码:
@using Microsoft.Reporting.WebForms;
@using MvcReportViewer;
@using MvcReportViewer
@model ViewReport
@Html.MvcReportViewerFluent(Model.ReportPathTordlc).ProcessingMode(ProcessingMode.Local).LocalDataSource(Model.ReportDataSet, Model.Report).LocalDataSource(Model.ActionDataSet, Model.Actions).Attributes(new { Height = 900, Width = 800, style = "border: 2px solid #ddd" }).Method(FormMethod.Post);
这两个.rdlc文件的路径是正确的,因为我在加载视图之前在控制器上检查它。
reportPathTordlc显示正确, 我有一个参数要检查,所以在我的report.rdlc中插入了带有参数的子报表。在子报表上我创建了一个参数。但仍然没有显示子报表。
从日志文件C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\LogFiles
不显示任何错误,它只显示此:i INFO: Call to CleanBatch()
。
到处搜索,并没有得到好运。
项目从here
任何帮助,将不胜感激。