如何让List内容保持在首页? (SSRS 2005 - PDF 导出)

发布于 2024-08-03 09:15:21 字数 751 浏览 3 评论 0原文

我有以下报告设置:

1. 信头(不在标题中,因为我只想在第一页上)

2. 当我将报告导出为 PDF 时,列出包含一些数据的控件

,以及 的内容列表少于一整页 - 我的信头显示在第一页上(页面的其余部分为空),列表内容移至第二页。

如果列表超过一页 - 报告显示得很好(信头和列表的一部分在第一页上 - 其余部分在第二页上)

看起来它试图将列表保持在1 页,只要其内容适合页面 - 但是当您将信头添加到内容中时,它会溢出页面,并且列表会向下跳到下一页。

有什么方法可以将列表保留在首页上,无论其大小如何。

将信头放入列表中是我最后的手段,我想听听其他解决方案。

上传了示例 .rdl 来说明问题,

为了简单起见,删除了列表,问题似乎在于文本框想要显示在一页上


。请参阅这个问题了解更多详情

I've got the following report setup:

1. Letterhead (not in the header, since i only want it on the first page)

2. List control with some data

when i export the report to PDF, and the contents of the List are less that one full page - my letterhead is displayed on the first page (the rest of the page is empty) and the List content gets moved to the second page.

if the List grows over 1 page - reports is showing up just fine (Letterhead and portion of the list on the first page - the rest on the second page)

It looks like it tries to keep the list on 1 page as long as its contents fit on the page - but when you add the letterhead to the contents it overflows the page, and the list gets bumped down to the next page.

Is there any way to keep the list on the first page regardless of its size.

Putting the letterhead in the list is my last resort, I'd like to hear some other solutions.

uploaded a sample .rdl to illustrate the problem

got rid of the list for simplicity, the problem seems to be with a textbox wanting to show up on 1 page


p.s. see this question for more details

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

铜锣湾横着走 2024-08-10 09:15:21

您的文字来源是什么?它来自数据集吗?如果是这样,请在其中添加段落 id,将表格设置为根据段落 id 进行分组并仅显示组标题。在组中,添加底部填充值(例如 5)。表格将为您处理段落分隔符,如果它增长更多页面,它将为您处理。确保 keep Together 设置为 false。段落 id 将用于按 id 升序对数据集进行排序。


抱歉我最后没有注意到你的评论。我唯一能想到的另一件事是将列表移到更靠近标题的位置,并消除末尾的所有空白区域。另外,请确保列表中的 KeepTogether 选项设置为 false。这样,它就会分解您的列表,而不是将其移动到下一页。


您可以将信头和列表都放在一个矩形内,以便它们始终分组在一起。

报表服务还尝试保留设计器中的相对空间,因此如果您的列表与页面底部对齐并且标题中有一个空格;它将保持顶部的空间并将所有内容与页面底部对齐。

What is the source of your text? Is it coming from a dataset? If so, Add a paragraph id in it, set your table to group on the paragraph id and show only the group header. In the group, add a bottom padding value of say 5. The table will handle the paragraph breaks for you, and if it grows more the a page it will handle it for you. Make sure that keep together is set to false. The paragraph id will be used to sort the dataset by id ascending.


sorry I didn't notice your comment at the end. The only other thing that i can think of is to shift your list up closer to the header and eliminate all empty space at the end. Also, make sure the KeepTogether option in the list is set to false. This way it will break up your list rather than move it to the next page.


you can put both the letterhead and the list inside a rectangle so they are always grouped together.

Reporting services also tries to keep the relative spaces you have in the designer, so if you list is aligned to the bottom of the page and there is a space form the header; it will keep the space on top and align everything to the bottom of the page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文