开发者

How use a DocumentPaginator asynchronously via GetPageAsync with XpsDocumentWriter?

开发者 https://www.devze.com 2023-03-06 07:32 出处:网络
The idea here is that I have a DocumentPaginator that I want to use with an XpsDocumentWriter or PrintDialog as both have the option of printing given a paginator. When I use either, i.e. XpsDocumentW

The idea here is that I have a DocumentPaginator that I want to use with an XpsDocumentWriter or PrintDialog as both have the option of printing given a paginator. When I use either, i.e. XpsDocumentWriter.Write[Async] or PrintDialog.PrintDocument, the pa开发者_如何学编程ginator is accesed via GetPage vs. GetPageAsync which I've overridden in derived DocumentPaginator class.

Outside of manually consuming the paginator and feeding Visuals to the document writer, is there a way to trigger the use of the Asyc functions of a DocumentPaginator?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号