Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation
Message
De
25/06/1999 18:57:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00234075
Message ID:
00234257
Vues:
28
>Hello.
>I was looking for a way to to save files as an RTF format after is was created in DOC format.
>
>Looking at the VBA macro and it reads...
>ActiveDocument.SaveAs FileName:="test1.rtf", FileFormat:=wdFormatRTF
>
>So far...
>oWordObj = CREATEOBJECT("Word.Application")
>oWordObj.Documents.Open("C:\WINDOWS\TEMP\MailingO.doc")
>oWordObj.WordBasic.FileSaveAs("C:\WINDOWS\TEMP\MailingO.rtf")
>
>BUT this just puts an exention of RTF still saves in native DOC. I have tried with/endwith for the file format with no luck. Can anybody help. Thanks.

oWordobj.document.saveAs("c:\windows\temp\mailing0.rtf",6)

The second parameter to the saveas method specifies which format. 6 is the format for rtf.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform