hat jemand eine Ahnung, wie man diesen VBScript Code zu Python (Pywin32) übersetzt ?
Code: Alles auswählen
Set oWord = CreateObject("Word.Application")
oWord.WordBasic.FilePrintSetup Printer:="MyPrintername", _DoNotSetAsSysDefault:=1
Code: Alles auswählen
import win32com.client
app = win32com.client.Dispatch('Word.Application')
app.WordBasic.FilePrintSetup(Printer='MyPrintername', DoNotSetAsSysDefault:=1)
Edit (Leonidas): Code in Python-Tags gesetzt.