reporting-services - SQL Server 报告服务 2008 : How to remove hyperlink in excel export?

标签 reporting-services

我有一个表格,其中一些单元格有一个操作:转到报告(到详细报告)。 当用户单击时,SSRS 将用户发送到子报表。 但是当用户在 excel 中导出报告时,我需要取消超链接。我能怎么做 ?我知道存在 Globals!RenderFormat 但我不知道如何使用它来告诉 SSRS 不要导出超链接。

谢谢

最佳答案

您需要转到具有超链接的单元格上的“操作”部分。您可能已经设置了“转到报告”操作。您不仅需要指定报告,还需要为其指定一个表达式,如下所示:

IIf(Globals!RenderFormat.Name = "EXCEL", Nothing, "YourReportPath")

或者您也可以使用 .IsInteractive 属性,这也会禁用 PDF 导出的链接:

IIf(Globals!RenderFormat.IsInteractive, "YourReportPath", Nothing)

关于reporting-services - SQL Server 报告服务 2008 : How to remove hyperlink in excel export?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8183064/

相关文章:

c# - Telerik Reporting 在本地生成 pdf,但不在 Azure 上生成

reporting-services - 需要复制 SSRS 动态列总计并在另一个计算中使用相同的总计

ssrs-2008 - SSRS 2008 R2 更改生产与测试的共享数据源

reporting-services - SSRS 找不到安装了 SQL Server 的服务器

sql - 在SRS表达式中使用 'like'

jquery - SSRS 报告的跨源问题

reporting-services - 如何将多个值传递给 SSRS 中的多值参数

c# - Microsoft 报告和复杂对象

reporting-services - 在 SSRS 查询字符串中传递多值参数的值

reporting-services - SSRS 格式日期时间