On Friday, January 15, 2016 at 2:04:08 PM UTC+8, tdsp...@gmail.com wrote:
> Hi All
>
> I am trying to change the active printer using win32com.client with the
> following code
>
>
>
> wordapp = win32com.client.Dispatch('Word.Application')
> worddoc = wordapp.Documents.Open(mypathfile)
> print
Hi All
I am trying to change the active printer using win32com.client with the
following code
wordapp = win32com.client.Dispatch('Word.Application')
worddoc = wordapp.Documents.Open(mypathfile)
print(wordapp.ActivePrinter)
"\\server\queries"
wordapp.ActivePrinter = "\\server\letters" //fails