[python-win32] Error 'Member not found' in Word.Basic automation
Andrew Z
ahziem1 at mailbolt.com
Sat Jun 7 22:22:04 CEST 2008
I would like to automate Word 95 through 2007 using Word.Basic. The code
works fine on Windows XP + Word 95, but it fails on Windows XP + Word
2007.
Code:
import win32com.client
app = win32com.client.Dispatch("Word.Basic")
app.AppShow()
Error:
File "<COMObject Word.Basic>", line 2, in AppShow
pywintypes.com_error: (-2147352573, 'Member not found.', None, None)
Also, the equivalent code works fine in Word 2007 with Windows Scripting
Host (VBS).
Set objWord = CreateObject("Word.Basic")
objWord.AppShow()
Andrew
--
http://www.fastmail.fm - The professional email service
More information about the python-win32
mailing list