I've got a XAML FlowDocument containing a table with a lot of rows, spanning multiple pages, and I'm converting this FlowDocument to XPS.
Now I'm looking for a way to repeat the header of the table on each page.
I see two possible approaches:
1) Get the table to automagically print the header on each page.
2) Somehow by program find out how many rows the page can hold, stop the table there, start a new table with same content and header on the next page.
So far I got no luck for both approaches. Maybe someone has got an idea how to page-break a FlowDocument table?
From stackoverflow
-
I have implemented a version of the FlowDocumentPaginator which works reasonably well.
Sam : Awsome! This might be just what I was looking for, thanks!!!Jason Harrison : @Bram: not clearly listed in your CodeProject example is the fact that you shim in the header row by shrinking the rest of the page contents, and the header row is identified heuristically. But it is a start.
0 comments:
Post a Comment