When I do it that way it creates a Link, wich was my problem in the first place. When I ADD any other non-office object, it emmbeds the document as Icon. Is there any way you know to force the RTB to emmbed ALL kind of files as Icons into the control, including Word and Excel Files??
TIA
>The OLE object can be either linked or embeded. 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)
>>>