flowdocument 分页 - 强制元素出现在新页面上
当我打印流程文档时,我希望某些元素 - 段落、表格 - 可能标有一些附加属性:
- 如果它们不完全适合前一页,则将其转移到新页面
或 - 始终出现在新页面上。
有人已经做过或者知道如何做吗?
干杯
when i print a flow document, I want certain elements - paragraphs, tables - probably marked with some attached property to:
- be transferred to a new page if they do not fit entirely on the previous one
or - always appear on a new page.
Has anybody done it already or has an idea how to do it?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您在永久分页符方面走在正确的轨道上。
“Paragraph”对象有一个名为“KeepTogether”的属性,它将实现您的第一个要点。如果“段落”中的块不能全部放在一页上,则所有块都将移动到下一页。还有类似的属性“KeepWithNext”,它允许提供相同的行为,但将“Paragaph”同级分组在一起。
Seems like you are on the right track for the permanent page break.
The 'Paragraph' object has a property called 'KeepTogether' which would achieve your first bullet point. If the blocks within the 'Paragraph' do not all fit on one page, all of the blocks will be moved to the next page. There is also the similar property 'KeepWithNext' which allows provides the same behavior, but groups 'Paragaph' siblings together.