简体   繁体   English

ASP.NET 报表查看器中的参数布局 (SSRS 2016)

[英]Parameter Layout in ASP.NET Report Viewer (SSRS 2016)

The 2016 SQL Server Report Builder allows users to arrange how the parameters will be laid out when the report renders. 2016 SQL Server 报表生成器允许用户安排报表呈现时参数的布局方式。 This gives you much more flexibility than previous versions which just shoved the parameters into a 2-column stack at the top of your report.与之前的版本相比,这为您提供了更大的灵活性,后者只是将参数推入报告顶部的 2 列堆栈中。

However it seems that the ASP.NET Report Viewer does not honor the layout that I'm specifying.但是,ASP.NET 报表查看器似乎不支持我指定的布局。 For example, if I layout my parameters in 4x3 rows, the rendered report in the ASP.NET Report Viewer still shows the parameters in a 2x6 grid.例如,如果我在 4x3 行中布置参数,ASP.NET 报表查看器中呈现的报表仍会在 2x6 网格中显示参数。

Does ASP.NET ReportViewer just not support custom parameter layouts for remote reports? ASP.NET ReportViewer 是否只是不支持远程报表的自定义参数布局?

FYI: I'm using Version 11 of the ReportViewer.仅供参考:我使用的是 ReportViewer 的第 11 版。 https://www.nuget.org/packages/Microsoft.Report.Viewer/11.0.0 https://www.nuget.org/packages/Microsoft.Report.Viewer/11.0.0

I'm pretty sure you need to be using v13.我很确定您需要使用 v13。 Here's the nuget install line:这是 nuget 安装行:

Install-Package Microsoft.ReportingServices.ReportViewerControl.WebForms.Preview安装包 Microsoft.ReportingServices.ReportViewerControl.WebForms.Preview

Here's the msdn webpage:这是 msdn 网页:

https://msdn.microsoft.com/library/01a821c4-2920-400c-be03-93d26c749bb1.aspx https://msdn.microsoft.com/library/01a821c4-2920-400c-be03-93d26c749bb1.aspx

If SQL Server Data Tools or SQL Server Management Studio for SQL 2016 is installed, make sure it's updated to the latest version.如果安装了 SQL Server Data Tools 或 SQL Server Management Studio for SQL 2016,请确保将其更新到最新版本。 Earlier versions of SSDT incorrectly gac'ed certain dlls which conflict with the Report Viewer Control.早期版本的 SSDT 错误地 gac'ed 某些与报表查看器控件冲突的 dll。 You may need to manually delete the V13 dll's from \\windows\\assembly\\gac_msil to permanently remove them.您可能需要从 \\windows\\assembly\\gac_msil 手动删除 V13 dll 以永久删除它们。 How to uninstall gacutil /u "Microsoft.ReportViewer.WebForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f如何卸载 gacutil /u "Microsoft.ReportViewer.WebForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f

gacutil /u "Microsoft.ReportViewer.WinForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u "Microsoft.ReportViewer.WinForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f

gacutil /u "Microsoft.ReportViewer.WebDesign, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u "Microsoft.ReportViewer.WebDesign, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f

gacutil /u "Microsoft.ReportViewer.Common, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u "Microsoft.ReportViewer.Common, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f

If you get Unable to uninstall: assembly is required by one or more applications https://support.microsoft.com/en-us/kb/873195如果您无法卸载:一个或多个应用程序需要程序集https://support.microsoft.com/en-us/kb/873195

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM