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

Re: Python and Word

2006-01-16 Thread Diez B. Roggisch
> I guess you will be way easier off writing the GUI-Parts that are embedded > in word in VBA. Actually I have difficulties imaging who not to do so. ^^^ Gosh, must be permutation day. That was supposed to be "how". Diez -- http://mail.pyth

Re: Python and Word

2006-01-16 Thread BartlebyScrivener
How to automate Word http://www.faqts.com/knowledge_base/view.phtml/aid/37034/fid/244 rpd -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Word

2006-01-16 Thread Diez B. Roggisch
rodmc wrote: > Hi Tim. > > Thanks for the tips. > > As for VBA, well I am looking at that as well. Although for > architectural reasons elsewhere in the project Python or C++ are the > only options. While I could use several languages I am trying where > possible to stick to one or at most two.

Re: Python and Word

2006-01-16 Thread rodmc
Hi Tim. Thanks for the tips. As for VBA, well I am looking at that as well. Although for architectural reasons elsewhere in the project Python or C++ are the only options. While I could use several languages I am trying where possible to stick to one or at most two. cheers, rod -- http://ma

Re: Python and Word

2006-01-16 Thread Tim N. van der Leeuw
Hi Rod, If you download and install the 'Python Win' extensions, which I think are linked from from the Python download page for windows, you have a set of COM classes for Python which allow you to do everything you can do in Word from a Python program. It allows a lot of interactive exploration

Re: Python and Word

2006-01-16 Thread rodmc
Hi Tim, Thanks for replying. It needs to be a small application/plug-in which can visualise data that is either within Word already or which is sent to it via a server on the localhost. The actual GUI will be very simple, for example and image and some buttons. What it actually has to do should

Re: Python and Word

2006-01-16 Thread Tim N. van der Leeuw
rodmc wrote: > Is there a way to write Word plug-ins in Python? I am using Python > 2.3.5 and Word 2000, and need to be able to write a small network > application with a basic GUI which can run inside Word. > > cheers, > > rod Hi Rod, Does it really need to be an application which runs inside

Python and Word

2006-01-16 Thread rodmc
Is there a way to write Word plug-ins in Python? I am using Python 2.3.5 and Word 2000, and need to be able to write a small network application with a basic GUI which can run inside Word. cheers, rod -- http://mail.python.org/mailman/listinfo/python-list