JavaScript Editor js editor     Web development 



Main Page

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 using the "Word.Basic" object used interactively with a CREATEOBJECT(В ) function.

В Copy Code
oForm = THISFORM
oForm.AddObject('oWordDoc','OleControl','WordDocument')
oForm.oWordDoc.Visible =  .t.
oForm.oWordDoc.DoVerb(0)

See Also



JavaScript Editor js editor     Web development