C# Microsoft.Reporting 在命名空间中不存在

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17313069/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 09:08:01  来源:igfitidea点击:

Microsoft.Reporting does not exist in namespace

c#visual-studio-2012report

提问by surajgalande

I have developed project in VS2010and now I want to continue same project with VS2012but I'm getting Error: Microsoft:Reporting does not exists in namespace

我已经开发了项目,VS2010现在我想继续同一个项目,VS2012但出现错误:Microsoft:Reporting does not exists in namespace

I am using Microsoft Reports for developing reports. Please Help me if you have any solution.

我正在使用 Microsoft Reports 来开发报告。如果您有任何解决方案,请帮助我。

采纳答案by Jon Crowell

Search for "reportviewer" in Nuget. Install the Microsoft.ReportViewer.WebForms VS2010package.

在 Nuget 中搜索“reportviewer”。安装Microsoft.ReportViewer.WebForms VS2010包。

回答by VSB

You need to install Microsoft Report Viewer to have its assemblies available in Visual Studio. You can bring it from: http://www.microsoft.com/en-us/download/details.aspx?id=6442

您需要安装 Microsoft Report Viewer 才能在 Visual Studio 中使用其程序集。你可以从:http: //www.microsoft.com/en-us/download/details.aspx?id=6442

回答by dieKoderin

You must right-click on Referencesfolder in your project and click on Add Reference. and then go to Assemblies > Extensions > Microsoft.ReportViewerand add it to your references.

您必须右键单击项目中的References文件夹,然后单击Add Reference。然后转到程序集> 扩展 > Microsoft.ReportViewer并将其添加到您的引用中。