Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having problems saving a Word Doc in .Txt format
Message
 
À
13/10/2000 10:30:51
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00429019
Message ID:
00429071
Vues:
16
>>>What is the proper syntax for the ActiveDocument.SaveAs when using FoxPro?
>>
>>I tested
>>
>>oWord.ActiveDocument.SaveAs(myDocname,wdFormatText)
>>
>>And that saved as OK for me.
>>Try that format..
>
>
>Although I know that wdFormatText is a Constant within word, it still
>doesn't execute that line... says wdFormatText is unknown. If I leave out the Format Constant in the command line, it does save the document...
>Next? Maybe if you can tell me the value of that cnstant(or where to get the value) I can convert it to a string and try iy that way... i'm grabbing at straws here
>
>BTW: Thanks for all of the fast responses! This Site is AWESOME, but that is only because you Fox Guru's are always online using it as well.. hehe

Sorry I thought that since you were using the constant you had a .h file setup.
The wdFormatText is 2. I will email you the constants file I use as I do an INCLUDe of it at the start of my vfp/word automation app.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform