ReportViewer使用

      使用ReportViewer出现以下问题:

An error occurred during local report processing.
The definition of the report 'Main Report' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系統找不到指定的檔案。

 

解决方法:
到微软主页,下载对应的组件安装程序,安装下,即可解决.
http://download.microsoft.com/download/9/8/d/98d5fe84-60ad-4d40-bc25-5f60b9f21a11/ReportViewer.exe

具体使用方法:
先要画好一张报表,报表里的字段要添加一个Dataset,然后在报表里一个一个拖到Table里,设计好的报表是.rdlc文件。
关键代码:

你可能感兴趣的:(Microsoft)