Re: Python and Word OLE

2016-01-18 Thread tdsperth
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

Python and Word OLE

2016-01-14 Thread tdsperth
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