Oh good! That means I definately come to the right place to ask about
this. I have found a FormFields() method for documents that seems to be
able to access the defined fields by number, doc.FormFields(1),
FormFields(2), etc. I am looking at some Perl code where a guy is using
the same API.
The bookmarks way look very useable. I will have to give that a try when I
create one of these from scratch. At the moment, I am looking at having to
support a Word document with form fields already in it. Not sure that is
the way I would have done it myself, but it is what I have to work wit
Hi,
I have been researching this for a couple of days now, and although
virtualenv seems like the answer, I have been reading about problems
with applications that require specific versions of Python in the
registry so it can find corresponding PYD and DLL files. This means that
it is more co
I have been doing a lot of work with Word and pywin32, it is a
nightmare (Especially with formatting). If you want to populate
pre-defined fields then the easiest way I have found is to create a
template document and fill it with bookmarks, then pretty much do
this:
document.Bookmarks("my_bookmark
Bill Allen wrote:
> I have the process for using win32com.client to create and put text
> into a Word document. How about filling in fields in an existing
> Word document? I am looking for more information on working with MS
> Word documents using the Python win32 facilities.
We've just been h
I have the process for using win32com.client to create and put text into a
Word document. How about filling in fields in an existing Word document?
I am looking for more information on working with MS Word documents using
the Python win32 facilities.
Thanks,
Bill
___
elf._ApplyTypes_(1076, 1, (12, 0), ((12, 17), (12, 17), (12, 17),
> (12, 17), (12, 17)), u'GetSaveAsFilename', None,InitialFilename
> , FileFilter, FilterIndex, Title, ButtonText)
>
> At the moment, development is stopped in its tracks, so comments are
> greatly
> appreciated
> From: Jason Veldicott
>
> I am wanting to display a file "Save As..." dialog in Excel through Pywin. I
> am doing
> this by calling Application.GetSaveAsFilename(). The problem however is that
> the
> parameter supplied to this function, InitialFilename, seems to be ignored by
> Excel.
>