Python's win32api only printing to default printer
问题 I'm trying to use win32api to output a PDF document to a particular printer. win32api.ShellExecute(0, "print", filename, '/d:"%s"' % printername, ".", 0) filename is a full pathname to the file, and printname is the name of the target printer I get by going through the output of win32api.EnumPrinters(6) . The file is sent to the Windows default printer even if printername is the name of a different target (my expectation is that passing a specific printer would send the named file to that