0%

An error occurred during local report processing

在.net平台使用 RDLC 进行报表开发,本机测试正常,到别的机器不是没反应就是报 An error occurred during local report processing 等错误
最后发现要确保报表所需的控件存在以及版本正确。

Microsoft.ReportViewer.Common.dll 
Microsoft.ReportViewer.DataVisualization.dll 
Microsoft.ReportViewer.ProcessingObjectModel.dll 
Microsoft.ReportViewer.WinForms.dll

这四个搞定后终于正常了! 最后别忘了语言资源的使用
─zh-Hans

Microsoft.ReportViewer.Common.resources.dll
Microsoft.ReportViewer.DataVisualization.resources.dll 
Microsoft.ReportViewer.Design.resources.dll 
Microsoft.ReportViewer.WinForms.resources.dll
觉得文章有用?请我喝杯咖啡~