无法创建组件“ ReportViewer”

时间:2018-06-28 12:09:55

标签: vb.net reporting-services reportviewer

有人可以帮助我解决以下错误吗?看起来它与不同版本有关,但我无法解决。我遵循不同的指示,例如:为WinForms安装NuGet软件包,而不是通过.NET Framework组件添加dll。 当我将ReportViewer拖放到窗体上时,出现以下错误。

error

1 个答案:

答案 0 :(得分:1)

这就是我所做的,对我来说效果很好:

1-已安装Microsoft Rdlc Report Designer for Visual Studio

2-打开Visual Studio,并使用“ Visual Basic”>“报表应用程序”模板创建一个新项目。 (您也可以使用右上角的搜索框进行搜索)

3-在警告对话框中,单击“信任”

4-取消了报告向导(我只是不想最初创建报告,可以创建。)

5-重建解决方案。

您都准备好了。您可以添加一个新报表并在VS中进行设计,并在[ { "backendAddressPool": null, "backendHttpSettings": null, "etag": "<####>", "httpListener": { "id": "<####>", "resourceGroup": "<####>" }, "id": "<####>", "name": "HttpsPaths", "provisioningState": "Succeeded", "redirectConfiguration": null, "resourceGroup": "<####>", "ruleType": "PathBasedRouting", "type": null, "urlPathMap": { "defaultBackendAddressPool": { "id": "<####>/backendPool1", "resourceGroup": "<####>" }, "defaultBackendHttpSettings": {}, "defaultRedirectConfiguration": null, "etag": "<####>", "id": "<####>", "name": "HttpsPaths", "pathRules": [ { "backendAddressPool": { "id": "<####>/backendPool1" }, "backendHttpSettings": { "id": "<####>/OverrideBackendPathSettings (redirects to '/' on the backend)", "resourceGroup": "<####>" }, "etag": "<####>", "id": "<#####>", "name": "home", "paths": [ "/home/*" ], "provisioningState": "Succeeded", "redirectConfiguration": null, "resourceGroup": "<####>", "type": null }, { "backendAddressPool": { "id": "<####>/BackendPool2", "resourceGroup": "<####>" }, "backendHttpSettings": { "id": "<####>/appGatewayBackendHttpSettings (sends request as is)", "resourceGroup": "<####>" }, "etag": "<####>", "id": "<####>/gryphon", "name": "gryphon", "paths": [ "/*" ], "provisioningState": "Succeeded", "redirectConfiguration": null, "resourceGroup": "<####>", "type": null } ], "provisioningState": "Succeeded", "resourceGroup": "<####>", "type": null }, "provisioningState": "Succeeded", "resourceGroup": "<####>", "type": null } 中进行显示。如果您打开ReportViewer,则可以在其中看到Form1

要将其添加到工具箱中,可以单击“选择项目”,然后浏览解决方案目录,然后从NuGet软件包文件夹中转到“报表查看器”软件包文件夹,然后选择ReportViewer

有关如何将报表查看器控件添加到表单的更多信息,请参见Integrating Reporting Services Using ReportViewer Controls - Get Started