Hi All, How do i programatically embed a OCX control in a RTF field i have tried using NotesEmbedObject class but its not working.i need to embedd the the controls within the OCX file(ie if there is a button that displays HELLO WORLD inside the OCX file)i need to programatically do this operation how can this be done.
You can embed OCX into a rich Text field. See following code snippet…
Sub Postopen(Source As Notesuidocument)
Source.EditMode = True
Call Source.GoToField("Body")
If source.IsNewDoc Then
Set Excel = Source.CreateObject("Excel", "OWC10.SpreadSheet.10")
Else
Set Excel = Source.GetObject ("Excel")
End If