Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word to rtf to ole
Message
 
 
To
30/10/2009 18:27:15
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01432460
Message ID:
01432466
Views:
77
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform