The OLE object can be either linked or embeded. The ADD() method creates embeded OLE object. To create linked OLE object, drug & drop file on the RTF control.
>It opens any office file into the RTB control, I mean, it opens the word or Excel file in edit mode inside the control. I'd like to have it embebbed as an Icon.
>
>Any help?
>THIA
>>Victor,
>>
>>You can use the Add() method of OLEObjects collection.
>>lcFile = GETFILE()
>>t_rtf.oRtf.oBJECT..OLEObjects.Add(,,lcFile)
>>
--sb--