标签: c# printing
是否有以C#方式向Windows添加打印机?我发现a reference使用了
[DllImport("winspool.drv",CharSet=CharSet.Auto)] private static extern IntPtr AddPrinter(string myserver, uint dwLevel, ref PRINTER_INFO_2 pi );
但我宁愿避免链接到本机库。这是我在.NET 2.0中添加打印机的唯一选择吗?
答案 0 :(得分:4)
您可以查看此链接是否有助于您 -
http://www.developerfusion.com/article/5450/using-wmi-from-managed-code/2/