微软报表查看器对象 [英] Microsoft report viewer object

查看:147
本文介绍了微软报表查看器对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个C#窗户Windows桌面上形成微软的Visual Studio 2013 Express应用程序还我使用的SQL Server 2012 Express中的高级功能包括报告服务。我的操作系统是Windows 8.1 64位。 (我也是在Win 7 64位专业版尝试此),所以...

I am developing a c# windows form application on Microsoft Visual studio 2013 Express for windows desktop also i am using SQL server 2012 express with Advanced features included reporting services. and my operating system is Windows 8.1 64bit. (I am also trying this on Win 7 64bit Pro) So...

安装了报告服务SQL服务器,.Net框架4.5.1安装。和Microsoft报表查看器2012运行时安装在我的计算机上。

SQL server with reporting services is installed, .Net Framework 4.5.1 is installed. and microsoft report viewer 2012 runtime is installed on my computer.

我的问题是但是这些组件已经安装在我的电脑上,我看不到命名为报告一个单独的标签在Visual Studio工具箱和Microsoft报表查看器对象。我要补充报表查看器控件/对象从工具箱中选择窗口的项目上下文菜单。即使我选择从项目窗口,这不是我的Windows窗体上添加工作的这个控制/对象。我的意思是我可以选择,但我不能将其拖放在表单上。每当我拖动和窗体上放置的ReportViewer对象,对象将出现在我的窗户形式,但没有Windows窗体上显示没有可设计的对象,你可以在图像中看到的。所以,有人可以帮帮我吗?为什么不能我的窗体上适当加这个的ReportViewer 对象,我为什么不能设计呢?

My problem is however those components are already installed on my computer, I can not see a seperate tab named as reporting and microsoft report viewer object in Visual Studio toolbox. I have to add report viewer control/object from choose item context menu of toolbox window. Even i add this control/object from choose items window it is not working on my windows form. I mean i can choose it but i can not drag and drop it on the form. Whenever i drag and drop reportviewer object on the form, object appears under my windows form but there is no designable object appears on the windows form as you can see in the image. So can someone please help me? why cant i add this reportviewer object on my form properly and why can't I design it?

您可以通过打开以下链接看到的图像。
http://i39.tinypic.com/2yjolzs.png

You can see the image by opening the following link. http://i39.tinypic.com/2yjolzs.png

推荐答案

这是最有可能在你的工具箱中的ReportViewer不是11.0版本,这将是它为什么无法按预期工作的原因。

It is most likely that the ReportViewer on your toolbox is not version 11.0 which would be the reason why it is not working as expected.

请按照下列步骤来获得ReportViewer控件在VS 2013年工作表示:

Follow these steps to get the ReportViewer control to work in VS 2013 Express:


  1. 删除从工具箱当前的ReportViewer。在工具箱窗口中右键点击>>选择项下>> .NET Framework组件取消的ReportViewer。

  1. Remove the current ReportViewer from the toolbox. Right click in toolbox window >> Choose Items >> deselect ReportViewer under .NET framework Components.

删除形式下出现的ReportViewer对象,并删除引用下的ReportViewer解决方案管理器。这些引用会Microsoft.ReportViewer.Common&安培; Microsoft.ReportViewer.Winforms。

Remove the ReportViewer object that appears under the form and remove references for ReportViewer under Solution Explorer. These references would be Microsoft.ReportViewer.Common & Microsoft.ReportViewer.Winforms.

如果已经安装了Microsoft报表查看器2012运行,那么你应该拥有的ReportViewer 11.0版可添加到VS.要进行检查,在工具箱窗口中,右键点击>>选择在.NET Framework组件用品>>选择浏览,浏览到C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms。打开文件夹11.0.0.0__89845dcd8080cc91并选择Microsoft.ReportViewer.WinForms.DLL。这将增加的ReportViewer 11.0版到从那里再添加到您的工具箱.NET Framework组件列表中。

If Microsoft Report Viewer 2012 Runtime is already installed, then you should have the ReportViewer version 11.0 available to be added to VS. To check, right click in toolbox window >> Choose Items >> under .NET framework Components select Browse, browse to C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms. Open folder 11.0.0.0__89845dcd8080cc91 and select Microsoft.ReportViewer.WinForms.DLL. This will add ReportViewer version 11.0 into the list of .NET framework Components from where you then add to your toolbox.

注意:如果你没有找到文件夹11.0.0.0__89845dcd8080cc91,这意味着没有安装Microsoft报表查看器2012运行。要从此链接微软报表查看器2012运行时安装2012运行时下载下载

Note: If you don't find folder 11.0.0.0__89845dcd8080cc91, that means Microsoft Report Viewer 2012 Runtime is not installed. To install the 2012 Runtime download from this link Microsoft Report Viewer 2012 Runtime download

希望这会修复该问题。

这篇关于微软报表查看器对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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