开发者

How can I print from a particular printer in WPF?

开发者 https://www.devze.com 2022-12-27 19:03 出处:网络
I have two printers installed, but I want my application to print from the billing printer not from the Deskjet.开发者_运维问答 How can I programmatically achieve that? Setting a default printer is no

I have two printers installed, but I want my application to print from the billing printer not from the Deskjet.开发者_运维问答 How can I programmatically achieve that? Setting a default printer is not a good option for me.


PrinterSettings.InstalledPrinters Property would probably a good place to start.

You should then be able to iterate through to find a printer with a PrinterName property that matches the printer you want to print to.

0

精彩评论

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