简体   繁体   English

SQL Server 2016 Microsoft.ReportViewer.WinForms.dll

[英]SQL Server 2016 Microsoft.ReportViewer.WinForms.dll

We need to Export rdls, that were created by report builder, in C#. 我们需要在C#中导出由报表构建器创建的rdls。 We have used the Microsoft.ReportViewer.WinForms.dll Version 12.0.0.0 and have called the Render function for this. 我们使用了Microsoft.ReportViewer.WinForms.dll版本12.0.0.0,并为此调用了Render函数。 https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/ms252752(v=vs.100) https://docs.microsoft.com/zh-cn/previous-versions/visualstudio/visual-studio-2010/ms252752(v=vs.100)

Since we now also support SQL Server 2016, we have to upgrade the dll to support the new report builder version. 由于我们现在还支持SQL Server 2016,因此我们必须升级dll以支持新的报表生成器版本。 But I can't find a newer version of the dll. 但是我找不到较新版本的dll。

在此处输入图片说明

So how do I export reports for SQL Server 2016 in C#? 那么如何在C#中导出SQL Server 2016的报告?

I got a solution on my own. 我自己找到了解决方案。 I didn't find a source where I can download the new dll. 我没有找到可以下载新dll的源。 But if I download this package it contains the new dll with the Version number 14.0 instead of 12.0. 但是,如果我下载此软件包,它将包含版本号为14.0而不是12.0的新dll。

https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/140.1000.523 https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/140.1000.523

So I took the dlls I needed, added them to the Solution and referenced them in the project. 因此,我将所需的dll添加到解决方案中,并在项目中引用了它们。 Now I can render rdls generated with report builder 2016. 现在,我可以渲染使用报表生成器2016生成的RDL。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为 Windows Server 2016 使用 Microsoft.Win32.TaskScheduler DLL - Using the Microsoft.Win32.TaskScheduler DLL For Windows Server 2016 我如何在 Microsoft.ReportViewer.WinForms 中更改报告显示 - How I could change report presentation in Microsoft.ReportViewer.WinForms 微软reportviewer - microsoft reportviewer Winforms ReportViewer不显示 - Winforms ReportViewer not showing 如何将我的 Microsoft SQL Server 2016 数据库附加到 Visual Studio 2015 中的 installshield 项目? - How to attach my Microsoft SQL Server 2016 database to installshield project in Visual Studio 2015? 在WinForms中切换ReportViewer中的DataSources - Switching DataSources in ReportViewer in WinForms 在Winforms应用程序中筛选ReportViewer - Filter for ReportViewer in Winforms app 如何通过中间件(C#)将查询结果(SQL Server 2016)作为超链接(Microsoft Outlook)发送 - How to sent query results (SQL Server 2016) as hyperlink (Microsoft Outlook) via middleware (C#) Microsoft.ReportViewer.WinForms.V15 与 .NET Core 3.1 不兼容 - 如何在 WPF 核心中显示 RDLC? - Microsoft.ReportViewer.WinForms.V15 not compatible with .NET Core 3.1 - How to show RDLC in WPF Core? 如何从Microsoft.Reporting.WinForms.ReportViewer v11将报告导出到.xls文件 - How to export report to .xls file from Microsoft.Reporting.WinForms.ReportViewer v11
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM