t Arora
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Upole
Sent: Thursday, January 17, 2008 11:27 AM
To: python-win32@python.org
Subject: Re: [python-win32] desperately needing help for textbox for ms
word
import win32com.client, win32api
w=win32com.
import win32com.client, win32api
w=win32com.client.gencache.EnsureDispatch('word.application',0)
w.Visible=1
d=w.Documents.Add()
tb=d.Shapes.AddTextbox(1,10,10, 100, 100)
tb.Name='My text box'
tb.TextFrame.TextRange.Text='hey bubba!'
tb.Fill.ForeColor.RGB = win32api.RGB(255, 0, 0)
Roger
i am in desperate need of help now. my boss is going to kill me.
my simple request would be, could someone please create a simple program that:
- imports win32com.client
- adds a textbox in a word document
- the color of the textbox would be filled in red
- and add a text in the textb