FlowDocument-页眉,页脚和页码 [英] FlowDocument - headers, footers, and page numbers

查看:521
本文介绍了FlowDocument-页眉,页脚和页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我使用FlowDocumentPageViewer来显示和打印FlowDocuments.

有什么方法可以在每页上插入一些固定的页眉/页脚(具有当前页码)吗?

我认为我可以使用 DynamicDocumentPaginator在内存中对FlowDocument进行分页,并在每页上添加所有需要的内容. IE.手动将 FlowDocument转换为FixedDocument.
此后,我将拥有一个可以显示和打印的FixedDocument.

还有其他可以尝试的选择吗?

谢谢



Hello,

I use FlowDocumentPageViewer to display and print FlowDocuments.

Is there any way to insert some fixed header/footer (with current page number) on each page?

I think I can use DynamicDocumentPaginator to paginate FlowDocument in memory and add all the needed content on each page. I.e. manually convert FlowDocument into FixedDocument.
After that, I would have a FixedDocument that could be displayed and printed.

But for me this manual flow-to-fixed conversion looks like overkill,  doesn't it?

Are there any other options I could try?

Thanks



推荐答案

您是否找到了制作流文档标题的方法?
问候
卡洛斯·德·卢娜·萨恩斯


这篇关于FlowDocument-页眉,页脚和页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆