C# 如何设置系统的默认打印机

using System.Runtime.InteropServices;
[DllImport( "winspool.drv" )]
public static extern bool SetDefaultPrinter( string Name);
private void button1_Click( object sender, EventArgs e)
{
    SetDefaultPrinter( "My Printer" );
}

你可能感兴趣的:(C# 如何设置系统的默认打印机)