File: SAMPLES\SOLUTION\OLE\OLEWORD.SCX
This sample shows how you can automate an embedded Word object on a form, insert some rich text, and then format the text. Typical automation with Word is usually done via the “Word.Basic” object used interactively with a CREATEOBJECT( ) function.
oForm = THISFORM oForm.AddObject('oWordDoc','OleControl','WordDocument') oForm.oWordDoc.Visible = .t. oForm.oWordDoc.DoVerb(0)