Winforms ReportViewer 未显示 [英] Winforms ReportViewer not showing

查看:41
本文介绍了Winforms ReportViewer 未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio Express 2012,我正在尝试使用 winforms 调用我部署的报告,这就是我所做的.

I am using Visual Studio Express 2012, I am trying to invoke my deployed reports using winforms, this is what i did.

  1. 我创建了一个新的 c# winforms 应用程序
  2. 我去工具箱寻找 ReportViewer 控件(但它不在那里)
    2.1 所以我通过右键单击工具箱>手动添加它选择项目 >然后我选择了报告查看器
  3. 之后我将它拖放到表单上(但它直接进入底部托盘并且没有给我任何选项)
  1. I created a new c# winforms application
  2. I went to the toolbox to look for the ReportViewer control(but it wasnt there)
    2.1 So i added it manually by right clicking Toolbox > Choose Items > then i selected the report viewer
  3. After that i dragged and dropped it on the form(but it goes straight to the bottom tray and doesn't give me any options)

我看到很多问题都解决了同样的问题,但没有解决方案.

I have seen many questions that address the same issue but with no solution.

推荐答案

问题出在 Microsoft.ReportViewer.WinForms 版本 10,我不知道为什么,但它在我的同事的电脑.

The problem was Microsoft.ReportViewer.WinForms version 10, I am not sure why, but it was doing the same thing on my colleague's computer.

这是我所做的:

  1. 我下载并安装了 Microsoft.ReportViewer.WinForms 版本 11.0.0.0
  2. 我去了工具箱,右击>选择项目
  3. 从那里我取消选择了 Microsoft.ReportViewer.WinForms 版本 10 并选择了版本 11.
  4. 然后我返回到我的解决方案,将报表查看器拖放到我的表单中,它起作用了
  1. I download and installed Microsoft.ReportViewer.WinForms version 11.0.0.0
  2. I went to the toolbox and right clicked > Choose Items
  3. From there I deselected Microsoft.ReportViewer.WinForms version 10 and selected version 11.
  4. I then went back to my solution to drag and drop the report viewer to my form, it worked

这篇关于Winforms ReportViewer 未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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