在 BIDS SSRS 中定位表格和图表
请参阅 (image.1) - 正如您所看到的,在设计视图中,我的左侧有两个表格,右侧有两个饼图,所有这些都整齐地放置。
请参阅(image.2) - 现在我预览报告,正如您所看到的,我不允许在表格旁边显示第二个饼图,它必须位于表格下方(但在右侧),这是为什么?显然有足够的空间可用于第二个饼图。
对此的任何答案或解决方法将不胜感激。
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.
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? There is quite CLEARLY sufficient space available for the second pie chart.
Any answer or workaround to this would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SSRS 在对齐报表中的对象方面做出了最佳猜测,但有时,尤其是当一个元素大小固定而另一个元素大小可变时,这并不总是有效。
解决该问题的最简单方法是向报表添加一个矩形对象,然后将两个图表移动到该矩形中。将矩形调整到最小尺寸并适当放置。正确完成后,您将看到 Parent 属性将从 Body 更改为 Rectangle 对象的名称。
现在,在渲染时,SSRS 将在矩形内对齐图表,然后将矩形与表格对齐,一切都应该按照您的预期匹配。
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.
The easiest way around the problem is to add a Rectangle object to the report, then move the two charts into the 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.
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.