SetWinDefaultPrinter

This method sets the connection in WinDefaultPrinter mode—that is, the connection is made to use the Windows default printer. If no Windows default printer is configured in the machine, the method fails with an exception.