John Machin napsal(a):
Have you run makepy?

  
No, I didnt know about that before
Have you ever heard of Google?
google("wdFormatText") -> first hit is a clue about makepy, second hit 
tells you that the magic number is 2
  
you must have another google... ;-)

I didnt get any relevant generaly mentioned article about these constants and the problem. Michel Claveau helped  me. And now I already know why it work before on w98 - I must did have run makepy - then my script with
wordapp.ActiveDocument.SaveAs(docastxt, FileFormat=win32com.client.constants.wdFormatText) 

works fine, cause these constant are created in folder gen_py under "magic" names of files. When I want to run this script on another machines I must use rather number 2.

Regards
-- 
geon

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to