C# 怎样设置体系的默许打印机的简朴代码示例
using System.Runtime.InteropServices; [DllImport("winspool.drv")] public static extern bool SetDefaultPrinter(stringName); privatevoid button1_Click(objectsender, EventArgs e) { 聽聽聽 SetDefaultPrinter("My Printer"); }
以上就是C# 怎样设置体系的默许打印机的简朴代码示例的细致内容,更多请关注ki4网别的相干文章!