I have a report view with lots of columns and rows in a tabular layout. It's created as a Grid control for displaying it on the screen. So far all's fine. Now this report needs to be printed.
I can take the Grid and print it using PrintVisual, but that only works on a single page. As soon as there are more rows, the table needs to split over multiple pages. I've read that pagination is not possible with PrintVisual and I should use PrintDocument with a FlowDocument instead.
Now the question is, how can I use my Grid control on my way to a FlowDocument? Can I just throw the Grid into the document, or is there an easy conversion method, or will I have to walk through each item of the grid and rebuild the document all on my own?
Or would it be easier to measure the Grid height and split off the rows that exceed the available page height, still using PrintVisual?