Re: [python-win32] Input-only vs. In/Out Function Parameters

2006-10-03 Thread Smith, Brian (CR)
Hi Tim,   Thanks for the response.   > Tell the VBA programmer "Don't do that".  Or, rearrange the parameters> so that the inout arguments are always first. Okay, I was afraid that would be the answer.  I don't particularly like the first option because simply telling someone not to do somet

[python-win32] MS Word

2006-10-03 Thread Michael S
Good day all. 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 found any good examples. Michael _

Re: [python-win32] Input-only vs. In/Out Function Parameters

2006-10-03 Thread Tim Roberts
Smith, Brian (CR) wrote: > > After doing some searching on the web, I had (naively?) thought perhaps > the answer might be creating a type library that defines the interface. > I had gone as far as installing the Windows Platform SDK so I could use > midl to compile the library, but ran into a p

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

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 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