Set the number. copies in System.Windows.Controls.PrintDialog

For what I was searching so far, I could not find a way to preset the number of copies in System.Windows.Controls.PrintDialog, which is used in WPF. I cannot undo or use another because I need the PrintVisual method, which only this class offers (afaik). If there is no other way, I am going to make a for loop and call the dialog.PrintVisual () method for the number of copies I want. I haven't tested yet, but I'm sure it should work. My question is: Is this the right way to do this?

+4
source share
1 answer

You are looking for dialog.PrintTicket.CopyCount .

Documents

+7
source

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


All Articles