Printing a multi-page file in WPF

I need to print my form, but to enter one page it is enough to enter it, so I need to print it on 2 pages, my poor knowledge allows me to know how to print one page, but hot, how to print in multi-page mode. Do you have any advice on how I can print in multi-page mode, any help would be appreciated.

Thank.

Good job

+2
source share
1 answer

You need to override the DocumentPaginator class .

This blog post helped me get it to work.

, , UserControl, ( ).

GetPage UserControl ( ), ( PageSize DocumentPaginator) DocumentPage ( DocumentPage).

PageCount PageSize, PageSize PageCount.

+1

Source: https://habr.com/ru/post/1748644/


All Articles