[python-win32] Calling Excel function GetSaveAsFilename, parameter ignored

2011-07-13 Thread Jason Veldicott
Hi, I am wanting to display a file Save As... dialog in Excel through Pywin. I am doing this by calling Application.GetSaveAsFilenamehttp://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._application.getsaveasfilename.aspx(). The problem however is that the parameter supplied

Re: [python-win32] python-win32 Digest, Vol 100, Issue 14

2011-07-13 Thread Jason Veldicott
-- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-win32/attachments/20110713/c0173b52/attachment-0001.html -- Message: 2 Date: Wed, 13 Jul 2011 07:50:01 + From: Andrew MacIntyre andrew.macint...@acma.gov.au To: python-win32

[python-win32] filling in field in a Word doc?

2011-07-13 Thread Bill Allen
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

Re: [python-win32] filling in field in a Word doc?

2011-07-13 Thread Tim Roberts
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

Re: [python-win32] filling in field in a Word doc?

2011-07-13 Thread sharpblade
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:

[python-win32] Multiple versions of Python on same machine with regsvr32.exe PYDs

2011-07-13 Thread reckoner
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

Re: [python-win32] filling in field in a Word doc?

2011-07-13 Thread Bill Allen
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

Re: [python-win32] filling in field in a Word doc?

2011-07-13 Thread Bill Allen
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.