Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word to rtf to ole
Message
 
 
À
30/10/2009 18:27:15
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01432460
Message ID:
01432466
Vues:
78
This message has been marked as the solution to the initial question of the thread.
Try
#DEFINE wdFormatRTF	6
loWord.ActiveDocument.SaveAs(cMyFileName, wdFormatRTF)
>Hi folks. Got a form with a luvely rtf ole control text area just gagging to be nicely filled up with rtf.
>
>My app generates an html doc which I can subsequently open in word via
>loWord = CREATEOBJECT("Word.Application") and so on. This works well.
>
>I'm trying to load this file to the rtf control and assume to do so, must first 'saveas' a file
>in wdFormatRTF - but, for the life of me, cannot do so. Is there a secret syntax to do so beyond:
>
>wdFormat = "wdFormatRTF"
>cMyFileName = "c:\foxtest\testfile.rtf"
>loWord.ActiveDocument.SaveAs(cMyFileName, wdFormat)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform