[python-win32] wdFormatText

geon geon at post.cz
Mon Oct 24 08:22:01 CEST 2005


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20051024/85be06b4/attachment.html


More information about the Python-win32 mailing list