[python-win32] create word document?

2005-10-04 Thread ng hsiaohui
Hi, I am creating MS word document using python win32. import win32com.client w = win32com.client.Dispatch("word.application") doc = w.Documents.Add("c:/test.doc") After that where can I find the command use to write contents in to this word document and to change the margin and fonts? Thanks

Re: [python-win32] create word document?

2005-10-04 Thread eric . powell
After this, you are using the methods and objects that are part of the MS Office COM object. One place to look is the object browser within the VBA environment in Word. Another would be any book on office automation. A final approach would be to record a macro of what you trying to do and then e