设置无。在System.Windows.Controls.PrintDialog副本 [英] Set no. of copies in a System.Windows.Controls.PrintDialog

查看:168
本文介绍了设置无。在System.Windows.Controls.PrintDialog副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我搜索到目前为止,我无法找到一个方法来预设在System.Windows.Controls.PrintDialog,这是在WPF中使用的拷贝数量。我不能回退或使用另外一个,因为我需要,只有这个类优惠(据我所知)
除非有另一种方式,我想在做一个for循环的PrintVisual方法,并呼吁dialog.PrintVisual()方法希望copies.I的数量还没有测试过,但我敢肯定它应该工作。我的问题:这是做它的正确方法是什么?

For what I searched so far, I could not find a way to preset the number of copies in a System.Windows.Controls.PrintDialog, which is the one used in WPF. I cannot fallback or use another one because I need the PrintVisual method that only this class offers (afaik) Unless there is another way, I'm thinking of doing a for loop and call the dialog.PrintVisual() method for the number of desired copies.I have not tested yet, but I'm quite sure it should work. My question: Is this the correct way of doing it?

推荐答案

您正在寻找 dialog.PrintTicket.CopyCount

文档

这篇关于设置无。在System.Windows.Controls.PrintDialog副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆