add footer to FlowDocumentsdocuments

2020-04-18 07:26发布

问题:

I want to add footer to FlowDocuments in wpf. Please help me how to add?

回答1:

After you load an XAML file, you will get an IDocumentPaginatorSource object, from which you can get its DocumentPaginator.

You can wrapper around DocumentPaginator, overriding its GetPage method to add header, footer, or anything else like watermark.

For getting the code goto Convert XAML Flow Document to XPS with Style



回答2:

look at this : http://www.codeproject.com/KB/WPF/PimpedDocumentPaginator.aspx