[英]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.