Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
That doesn't happen on MY machine
Message
From
21/12/2006 14:43:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
That doesn't happen on MY machine
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01179645
Message ID:
01179645
Views:
57
Hi All,

After loading a program on a client's machine, then running it to create an Excel file, we get the following error...

OLE Dispatch exception code 0 from Microsoft Excel: Microsoft Excel cannot acces the file
'D:\GMR\Lunches\V_lunch\data' There are several possible reasons:
The file name or path does not exist
The file you're trying to open is being used by another program.
Close the document in the other progr..

I tried to duplicate the problem on my machine and it runs fine. Argh!

I assigned the value of the program directory to m.dir and call all data files as follows...

if !used('file')
use m.dir+"data\file.dbf" in 0 excl
endif

There is NO reason the program should be looking to any other drive or folder than C:(and then the folder/s the program is located within).

Any suggestions are greatly appreciated.

Thanks,
Martha Kroll
Next
Reply
Map
View

Click here to load this message in the networking platform