本地打印机名称在C#中动态 [英] local printer name dynamically in c#

查看:84
本文介绍了本地打印机名称在C#中动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是xaml(c#)的新手,我想知道本地系统中的当前打印机,
因为基于该打印机,我需要在c#中调用特定的printername方法.
谁能帮我这个忙.

在此先感谢,

Hi Everyone,
i am new to xaml(c#) i want to know the current printer in a local system,
because based on that printer i need to call particular printername method in c#.
can anyone help me in this one.

thanks in advance,

推荐答案

尝试:

Try:

System.Drawing.Printing.PrinterSettings ops = new System.Drawing.Printing.PrinterSettings();
string defaultPrinterName = ops.PrinterName;


这篇关于本地打印机名称在C#中动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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