Sure, What you need are the win32 extensions for python (http://starship.python.net/crew/mhammond/win32/Downloads.html), which contain win32com. Through com, you can access almost anything in windows. Check out http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/html/com/win32com/HTML/QuickStartClientCom.html for a short com tutorial, and http://starship.python.net/crew/pirx/spam7/ for a presentation on com in python.
Once you're connected to a word document, you'll have to figure out what the command to count the words in the document is, but that's just a matter of recording a macro in word where you count the words, then repeating it in python. I'd help you with that, but I'm on linux. Peace Bill Mill bill.mill at gmail.com On Thu, 20 Jan 2005 16:37:06 +0530, Gopinath V, ASDC Chennai <[EMAIL PROTECTED]> wrote: > > > hi all, > > Is it possible to write a program in python to calculate the number of > words in a MS-Word document Page > Regards > gopi > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor