Re: [python-win32] MS Word and Python - how to disable SaveAs event?

2007-12-14 Thread bob gailer
Wojtek P wrote: > Hello! > > I try use Microsoft Word and OpenOffice with Python - and i have some > problems. How to disable "Save As" in word from python code, or how to > cancel this function when user use it? This code below doesn't work :/ > > wxPython 2.8.4.2 > Python 2.4.

Re: [python-win32] MS Word and Python - how to disable SaveAs event?

2007-12-14 Thread Tim Roberts
Wojtek P wrote: > > I try use Microsoft Word and OpenOffice with Python - and i have some > problems. How to disable "Save As" in word from python code, or how to > cancel this function when user use it? This code below doesn't work :/ You can't. This is not a Python issue. Word simply does expo

Re: [python-win32] MS Word

2006-10-03 Thread Michel Claveau
Hi! Try: win32com.client.Dispatch('Word.Application')... ...Selection.InsertFile(fichierWord) @-salutations -- Michel Claveau ___ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] MS Word

2006-10-03 Thread Metz, Bobby W, WWCS
I suggest the following. It may not be the prettiest, but it's very simple. Create new doc... Documents.Add DocumentType:=wdNewBlankDocument ActiveDocument.SaveAs FileName:="Combined.doc", FileFormat:= _ wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _

Re: [python-win32] MS Word

2006-10-03 Thread Gabriel Genellina
At Tuesday 3/10/2006 12:33, Michael S wrote: Does anyone have experience in appending multiple word file into one big file? I have a directory full of word files and I want to make one file out of all of them. I tried to google it, in order at least to see it how it's done in VBA, but haven't fo