-
word automation document
2009-12-28
http://msdn.microsoft.com/en-us/library/aa158471(office.10).aspx
word = WIN32OLE.connect('Word.Application') #get word application object
active_doc = word.ActiveDocument #get the active documentnew_doc = word.Documents.Add() #create a new documentnew_doc.SaveAs('C:\hello.doc'); #save the new document
共1页 1
