Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relative paths and office 2013
Message
From
18/11/2015 03:06:29
 
 
To
17/11/2015 10:27:36
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01627367
Message ID:
01627573
Views:
38
>>As for relative paths... I am not using exactly relative path like
>>(currentfolder+) .\somefolder\somefile.xls
>>which depends on current folder, it is always kind of 'beheaded' full path; whole path without drive letter prefix
>>which naturally is not known prior deployment of app.
>>
>>So instead of using
>>c:\rootfolder\subfolder\subfolder\subfolder\file..
>>it is always
>>\rootfolder\subfolder\subfolder\subfolder\file..
>>
>>And it always worked, in all versions of office so far. Except in my new VFP IDE on my new machine with office 2013.
>>Again on other machine that also has W7 + VFP9 IDE + Office 2013 - no problem.
>>
>>Only on THIS (new) machine. Will actually try making another virgin installation to see if it happens again or is
>>just bizarre set of circumstances causing it to happen.
>
>On which disk?

Non controversial C:\ :-)
(As usual)

>
>I assume Office and the file were always on the same disk, and now you put them on different disks and they can't find each other. And it doesn't really matter if you installed office on w:, a COM object may as well have c:\windows\system32 as its current location, or perhaps the %appdata% folder. You don't know, and you shouldn't care. Full path when talking to strangers, always.
>

No everything is on C:
And it works when compiled into EXE. Problem occurs only inside VFP9 IDE on this new machine (and different domain) .
That is what is confusing.

Problem is easily solved by applying fullpath (changed total of 3 lines in 2 classes) but I am still puzzled why it happened in the first place.
Or I should be puzzled how come never gave me any problem before ;-))
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform