General information
Category:
COM/DCOM and OLE Automation
Title:
Opening excel in form
I'm trying to open an excel document in a form but I get only as far as specifying the object to open, I have this:
oForm.addobject('oExcel','olecontrol','excel.Application')
oForm.oExcel.WorkBooks.Open('c:\test.xls')
oForm.oExcel.Height = THISFORM.txtContainer.height
oForm.oExcel.Width = THISFORM.txtContainer.width
oForm.oExcel.Top = THISFORM.txtContainer.top
oForm.oExcel.Left = THISFORM.txtContainer.left
oForm.oExcel.Visible = .t.
oForm.Show
But I still don't see the spreadsheet on the form. What am I missing?
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only