【问题标题】:Asp.Net WebForms SSRS ReportViewer ShowFindControls IssueAsp.Net WebForms SSRS ReportViewer ShowFindControls 问题
【发布时间】:2020-10-23 08:53:25
【问题描述】:

将 Microsoft.ReportViewer 从 11 版本升级到 15 版本后,ReportViewer 控件不显示 Find Widget。如果 ShowExportControls 为 true,则会出现此问题。 ShowExportControls 和 ShowFindControls 都是 true。我该如何解决这个问题?

这是旧版本和新版本的屏幕截图。

旧:

新:

代码:

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<rsweb:ReportViewer ID="ReportViewerControl" runat="server" ShowExportControls="true" ShowFindControls="true"/>

【问题讨论】:

  • 请包含您用于嵌入式报表查看器控件的代码和选项。

标签: asp.net reporting-services webforms


【解决方案1】:

我也有同样的问题。检查css代码后,我发现“ShowfindControls”的类被隐藏了

"style="vertical-align: top;显示:无;”

应该是这样的

"style="vertical-align: top; display:inline-block;"

所以,实际上你可以使用 Jquery 来更改 css 并显示这个 div,但是我发现我的 reportviewer 宽度不够。因此,只需将 ReportViewer 的宽度增加到 1200 即可。您也可以尝试禁用其他工具栏并仅显示 Finder,它会起作用。希望这会有所帮助。

【讨论】:

  • 你说得对,它是关于宽度的。增加宽度解决了我的问题。感谢您的帮助。
  • 我很高兴它有帮助。祝你的项目好运。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-11-14
  • 2012-02-26
相关资源
最近更新 更多