简体   繁体   English

导出到Excel时,停止SSRS添加Excel“概述”

[英]Stop SSRS adding Excel “Outline” when exporting to Excel

We have a report which looks like this: 我们有一个看起来像这样的报告:

在此处输入图片说明

If I then go Actions>Export>Excel I get the following: 如果然后转到“ 操作”>“导出”>“ Excel”,则会得到以下信息:

在此处输入图片说明

Unfortunately the number circled is misleading. 不幸的是,圈出的数字具有误导性。 This column is a count of users - so if the same user was in several months they should only be counted in the total as 1. 此列是用户数-因此,如果同一位用户在几个月后才应计为1。

I assume out-of-the-box it adds the excel outline whenever we include the expansion/collapse (+/-) functionality in the report. 我认为,当我们在报表中包括扩展/折叠(+/-)功能时,它即开即用地添加了excel大纲。

Is there a way in the rdl file to stop RS 's export functionality of adding the outline? rdl文件中是否可以阻止RS添加轮廓的导出功能?

That Outline behaviour in Excel is triggered by the ToggleItem property in SSRS. Excel中的Outline行为由SSRS中的ToggleItem属性触发。 You cannot set this with an Expression. 您不能使用表达式设置它。 Therefore I would remove the ToggleItem property from all textboxes. 因此,我将从所有文本框中删除ToggleItem属性。

Instead I would use Bookmarks and/or DocumentMap functionality - these achieve similar results and generally work better across a broad range of rendered output formats. 取而代之的是,我将使用书签和/或DocumentMap功能-这些功能可实现相似的结果,并且通常可在各种呈现的输出格式中更好地工作。

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

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