是否可以在 rdcl 报告 C# 中指定页数?
我有一个 rdcl 准备好填充。 它主要包含一个占据整个宽度的表格和它下面的一些显示摘要信息的文本框。 有时表格会有很多行,有时只有几行。这使得文本框最终位于同一页面或第二(或第三)页面,具体取决于情况。
我想知道是否可以指定跳转到文本框的下一页。 因此,例如,即使表格只有 1 行,并且其下方有足够的空间来容纳 1 页中的文本框信息,我希望它们从第二页开始。如果表格太长并且占据了1页半,则文本框应该出现在第3页,依此类推。
我想创建一个仅包含文本框的第二个报告,但页码不匹配,而且报告显示在不同的窗口中。
非常欢迎任何指点。
I have a rdcl ready to be populated.
It mainly contains a table that occupies the whole width and a few Textboxes under it that show summary info.
Sometimes the table will have a lot of lines and other times only a couple of them. This makes the texboxes to end up in the same page or a 2nd (or a 3rd) depending on the situation.
I wanna know if it is possible to so specify a jump to the next page for the textboxes.
So for example even if the table has only 1 line, and there is enough space under it to fit the texboxes info in 1 page, i want them to start at the 2nd page. And if the table is too long and occupies 1 and a half pages, the textboxes should appear in the 3rd page, and so on.
I thought of creating a 2nd report with only the textboxes but then the page numbers do not match and also the reports are showed in different windows.
Any pointers are most welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,如果报表对象存在于同一个 rdcl 上,则无法将它们发送到某个页面。
但是,您可以将表上的“PageBreak”选项更改为“End”。这会将表格之后的所有内容推到下一页。
这将帮助您获得想要的结果。
编辑:
您还可以通过将报表属性“InteractiveSize”更改为高度(例如 50 英寸)来删除大量页面。这会导致报表查看器分页的频率大大降低(每 50 英寸),并且很可能将所有内容放在报表查看器中的第 1 页上。
As far as I know, if the report objects exits on the same rdcl you can not send them to a certain page.
You can, however, alter the "PageBreak" option on the Table to "End". This will push everything after the table onto the next page.
This will help you get the desired results you are after.
EDIT:
You could also get rid of the numerous pages all together by changing the Report property "InteractiveSize" to a height of lets say 50in. This causes the report viewer to page break much less often (every 50 inches) and would most likely place all of your content on Page 1 in the report viewer.