Regarding my previous message, here's sample code I am using. It runs fine on my computer but not others. These computers have same versions of Word, Python, and Python-win32:
#### from win32com.client import Dispatch, constants wordApp = Dispatch("Word.Application") print constants.wdTextWrappingBreak print constants.wdLine wordApp.Quit() #### > Hi, list: > > This is puzzling. For the PythonWin32 based Word > script I developed, everything works fine on my > machine. However, when I run the script on another > machine, it would fail whenever it comes across any of > the constants variables (such as, for example, > constants.wdLine, constants.wdStory, or any of them). > I checked and rechecked and the machines are all > running the same version of Python (2.3) and same > versions of PythonWin32. > > Anybody?? > > Thanks, > > -- > > -- > John Henry > _______________________________________________ > Python-win32 mailing list > Python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 > > -- John Henry _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32