调用win api将指定名称的打印机设置为默认打印机 [DllImport("winspool.drv")] public static extern bool SetDefaultPrinter(String Name);