Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel OLE Automation Server
Message
From
13/12/1999 07:07:31
 
 
To
13/12/1999 02:29:12
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00302601
Message ID:
00302619
Views:
23
Hi there,

First add a OLE Bound control in your form and following are the sample code to open an excel file. (assuming filename is "EACHLINE.XLS" and the OLE bound control name is "oLineGraph")
oLineGraph = CreateObject('Excel.Sheet')
If !File('EachLine.XLS')
   MessageBox('File EACHLINE.XLS is not found!',16)
   Return
EndIf
ThisForm.oLineGraph.WorkBooks.Open('EachLine.XLS')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform