documentpaginator

Creating WPF components in background thread

Im working on a reporting system, a series of DocumentPage are to be created through a DocumentPaginator. These documents include a number of WPF components that are to be instantiated so the paginator includes the correct things when later sent to the XpsDocumentWriter (which in turn is sent to the actual printer). My problem now is th...

WPF DocumentPaginator and DocumentPage unexpected cropping

I'm trying to print a WPF canvas over multiple pages. I'm perfectly happy with scaling it to fit on the page width, then clipping and translating the canvas for each page; all pretty simple maths. What I don't understand is how I get the dimensions of the printable area, and how to tell the printer where to print to. Whatever I try it ...

Saving a FlowDocument with a DocumentPaginator

How do I save DocumentPaginator initialized with a FlowDocument? According to MSDN I should be able to use a SerializerProvider to get a SerializerWriter, but creating a SerializerProvider throws an UnauthorizedAccessException: "Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WinFX Serializers' is denied.". Is there an...