[python-win32] create word document?
eric.powell@srs.gov
eric.powell at srs.gov
Tue Oct 4 17:20:56 CEST 2005
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 examine the code to find the appropriate objects, interfaces and
methods.
Eric
Eric B. Powell
Process & Geographic Software Engineering
BSRI
(803)952-7783
There is no genius without a mixture of madness.
(Seneca, De Tranquillitate)
ng hsiaohui <nghsiaohui at yahoo.com>
Sent by: python-win32-bounces at python.org
10/04/2005 04:33 AM
To
python-win32 at python.org
cc
Subject
[python-win32] create word document?
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 for help.
Regards,
Hsiao Hui
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20051004/2aff7f4e/attachment.htm
More information about the Python-win32
mailing list