动态矩阵宽度始终等于图表宽度

动态矩阵宽度始终等于图表宽度

本文介绍了动态矩阵宽度始终等于图表宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数事情在SSRS中都是动态的,即,您可以为大多数格式创建自定义表达式.

Most things are dynamic in SSRS i.e you can create a custom expression for most formatting.

我有一个使用矩阵工具的报告.此矩阵的宽度会有所不同,具体取决于包含的列数.

I have a report with a matrix tool. This matrix will vary in width depending on how many columns are included.

矩阵上方是图表.

如何使列宽动态变化,使其始终与矩阵相同?

How do I make the column width dynamic so that is always the same width as the matrix?

推荐答案

对不起,但不可能.矩阵中的列宽无法使用表达式设置:

Sorry, but it's not possible. The width of columns in a matrix can't be set with an expression:

社会来源.msdn

一种可能适合您的替代方法是更改​​图表的宽度,因为它们确实具有动态高度动态宽度(另请参见此博客文章).请注意,此功能仅在SSRS-2008及更高版本中可用.

One alternative that may suit you is varying the width of the chart, because they do have a properties for Dynamic Height and Dynamic Width (see also this blogpost). Note that this only available in SSRS-2008 and up.

其他选择将更加繁重",包括为RDL动态生成(或编辑)XML.解决方法将包括隐藏多余的列(可见性可以动态设置)

The other alternatives will be much "heavier", including generating (or editing) the XML for the RDL dynamically. Workarounds would inlude hiding excess columns (the visibility can be dynamically set)

这篇关于动态矩阵宽度始终等于图表宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 18:08