Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Automation
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01480884
Message ID:
01480889
Views:
52
>>>Hi,
>>>
>>>I am trying a simple Excel automation test as following:
>>>
>>>
>>>LOCAL oExcel AS Excel.Application
>>>oExcel = CREATEOBJECT([Excel.Application])
>>>loWorkbook = oExcel.workbooks.open('MyFile.xls')
>>>
>>>
>>>I get error OLE Dispatch exception that MyFile.xls could not be found. The is there, I verified. What am I doing wrong?
>>
>>You must include the whole path to myfile.xls..
>
>I thought that because I was calling the code from the folder where file is located it would find it. Thank you.

You don't know what Excel current folder is. The full file name works always.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform