简体   繁体   English

BIDS SSRS 中的定位表和图表

[英]Positioning tables and charts in BIDS SSRS

See (image.1) - As you can see, in the design view I have my two tables on the left and two pie charts on the right, all neatly positioned.请参阅 (image.1) - 正如您所看到的,在设计视图中,我的左侧有两个表格,右侧有两个饼图,它们都整齐地放置。

See (image.2) - Now I preview the report, and as you can see, I am not allowed the second pie chart along side the tables, it has to go below them (but on the right) why is this?请参阅 (image.2) - 现在我预览报告,正如您所看到的,我不允许在表格旁边显示第二个饼图,它必须在它们下方(但在右侧),这是为什么? There is quite CLEARLY sufficient space available for the second pie chart.显然有足够的空间可用于第二个饼图。

Any answer or workaround to this would be appreciated.对此的任何答案或解决方法将不胜感激。

在此处输入图片说明在此处输入图片说明

SSRS makes its best guess at aligning objects in reports, but sometimes, especially when one element is fixed size and the other is variable, this doesn't always work. SSRS 对对齐报告中的对象做出了最好的猜测,但有时,尤其是当一个元素是固定大小而另一个是可变元素时,这并不总是有效。

The easiest way around the problem is to add a Rectangle object to the report, then move the two charts into the rectangle.解决此问题的最简单方法是向报表添加一个Rectangle对象,然后将两个图表移动到矩形中。 Resize the rectangle to its minimum size and place appropriately.将矩形调整为最小尺寸并适当放置。 When done properly you will see that the Parent attribute will have changed from Body to the name of the Rectangle object.正确完成后,您将看到Parent属性将从Body更改为 Rectangle 对象的名称。

Now, when rendering, SSRS will then align the charts within the rectangle, then align the rectangle against the table, and everything should match up as you expect.现在,在渲染时,SSRS 将在矩形内对齐图表,然后将矩形与表格对齐,一切都应该如您所愿。

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

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