The following example adds an OLE Container control to a form, and uses the OleClass and DocumentFile properties to specify Microsoft Excel as the Automation server and an Excel worksheet as the file to edit.
Define class foo as form
add object oleXLSheet1 as oleXLSheet
EndDefine
Define class oleXLSheet as OLECONTROL
oleclass = "Excel.Sheet"
documentfile="C:\msoffice\Excel\mysheet.xls"
oletypeallowed = 1 && Embedded
EndDefine