即使在“选择项目”中选中了ReportViewer控件,工具箱中也不可见, [英] ReportViewer Control Is not Visible in the Toolbox even if it is checked in the Choose Item,

查看:40
本文介绍了即使在“选择项目”中选中了ReportViewer控件,工具箱中也不可见,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一次又一次地尝试将ReportViewer控件添加到工具箱中,它已被选中但无法在选择项中查看。



我不知道如何解决这个问题。



仅当项目是Asp.Net应用程序时才会发生这种情况。当项目是Windows应用程序时它是可见的。



谢谢

解决方案

因为你可以看到reportviewer表格:请注意您为asp.net选择Microsoft.Reporting.WebForms。



您是否在工具箱中看到报告标签?这应该包含MicrosoftReportViewer。如果没有,请尝试重新安装可再发行组件。



但是你真的需要它在你的工具箱中吗?您还可以在页面中添加以下行(您也可以将版本更改为10.0.0.0)。



<%@注册assembly =Microsoft.ReportViewer.WebForms,Version = 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3anamespace =Microsoft.Reporting.WebFormstagprefix =rsweb%> 





实际报告查看器:



< rsweb:ReportViewer ID =ReportViewer1 runat =serverFont-Names =VerdanaFont-Size =8ptShowRefreshButton =FalseWidth =790px> 
< / rsweb:ReportViewer>



如果这样,你至少可以解决这个问题。


1 。右键单击工具箱并选中全部显示

报告选项卡中有两个reportviewer。

2.再次右键单击并选择选择项目...

3.在.Net Framework组件选项卡中禁用ReportViewer,然后单击确定

Reportviewer将消失。

4.再次右键单击并单击选择项目......

5.在.Net Framework组件选项卡中启用ReportViewer并单击确定

报告选项卡中只显示一个ReportViewer图标

6.右键单击工具箱并取消选中全部显示

报告选项卡不会消失


re VS 2107和WinForms

解决方案2沿着正确的方向行驶。这就是我所做的;

1)从扩展和更新,下载并安装 Microsoft RDLC报告设计器 ...

2)如解决方案2 ,进入工具箱,选择要显示ReportViewer的部分。右键单击并选择选择项目

3)向下滚动列表,您应该看到两个报表查看器条目。确保勾选WinForms版本。

4) ReportViewer 控件应出现在您选择的工具箱部分(在我的情况下打印)。

)将控件拖到Form和Voila!上,应该出现ReportViewer1。

6)注意项目中添加了两个引用;

Microsoft。 ReportViewer.Common

Microsoft.ReportViewer.Winforms


Hallo everybody,

I did try again and again to add ReportViewer control into the toolbox,it is checked but couldn't be viewed in the choose item.

I don't know how to solve this.

This only happens when the project is Asp.Net application. It is visible when the project is windows application.

Thanks

解决方案

Since you can see the reportviewer for forms: please note that you select Microsoft.Reporting.WebForms for asp.net.

Do you see the tab 'Reporting' in your toolbox? This should contain MicrosoftReportViewer. If not, try reinstalling the redistributable(s).

But do you really need it in your toolbox? You can also add the following line to your page (you can change the version also to 10.0.0.0).

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>



And the actual reportviewer:

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" ShowRefreshButton="False" Width="790px">
</rsweb:ReportViewer>


If this works you at least have a work-around.


1. Right Click on Toolbox and check "Show All"
There are two reportviewer in reporting tab.
2. Right click again and click "Choose Items..."
3. Disable ReportViewer in ".Net Framework Components" tab and click Ok
Reportviewer will dissappear.
4. Right click again and click "Choose Items..."
5. Enable ReportViewer in ".Net Framework Components" tab and click Ok
Just one ReportViewer icon will show in reporting tab
6. Right Click on Toolbox and uncheck "Show All"
Reporting tab will not dissappear


re VS 2107 and WinForms
Solution 2 is along the right lines. This is what I did;
1) From Extensions and Updates, download and install Microsoft RDLC Report Designer
2) As in Solution 2, go into Toolbox, select a section where you want the ReportViewer to appear. Right click and select Choose Items.
3) Scroll down the list, you should see two entries for Report Viewer. Make sure you tick the one for WinForms.
4) The ReportViewer control should appear in your chosen Toolbox section (Printing in my case).
5) Drag the control onto a Form and Voila!, ReportViewer1 should appear.
6) Notice two references have been added to your project;
Microsoft.ReportViewer.Common
Microsoft.ReportViewer.Winforms


这篇关于即使在“选择项目”中选中了ReportViewer控件,工具箱中也不可见,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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