Python 2.3, win32all-157, AttributeError: wdFormatText
Bob Gailer
bgailer at alum.rpi.edu
Thu Oct 23 21:20:42 EDT 2003
At 01:18 AM 10/20/2003, Reinhard Koenig wrote:
>Hello,
>
>I' m using Python 2.3, win32all-157 under W2K. I've applied the makepy
>utility for the Word 8.0 object library. I now receive:
>
>Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)]
>on win32
>Type "help", "copyright", "credits" or "license" for more information.
> >>> import win32com.client
> >>> win32com.client.Dispatch("Word.Application")
><COMObject Word.Application>
Shouldn't you assign the result of the Dispatch to a variable, then
reference that variable in subsequent code?
>>> app = win32com.client.Dispatch("Word.Application")
[snip]
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
More information about the Python-list
mailing list