Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening excel in form
Message
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00796969
Message ID:
00796992
Views:
12
Hi Roy,

You cannot place Excel inside VFP form. If you want to have a spreadshet on your form, you should look for an ActiveX Spreadsheet control.

>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform