win32print.SetDefaultPrinter

None = SetDefaultPrinter(printer)

Sets the default printer.

Parameters

printer : string

printer to set as default

Comments

This function uses the pre-win2k method of WriteProfileString rather than the SetDefaultPrinter API function