Mike Lewis
Programmer
When you use any of the following commands, does VFP require Excel to be installed on the user's computer:
APPEND FROM ... TYPE XL5
IMPORT FROM ... TYPE XL5
COPY TO ... TYPE XL5
EXPORT TO ... TYPE XL5
I've always assumed that these commands just do a straight file conversion. They don't invoke Excel as a COM server, and they'll work just as well if Excel is not installed.
The reason I ask is that I just tried to do a COPY TO, but the target file was already open in Excel, so I got a lock violation error. Nothing unexpected about that.
Except that the error message was
Note the "OLE error code". It's that that made me think that VFP is doing some OLE or COM behind the scenes, in which case it would fail if Excel was not available.
I don't have a machine that doesn't have Excel, so I can't try this for myself.
Can anyone throw any light on this?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
APPEND FROM ... TYPE XL5
IMPORT FROM ... TYPE XL5
COPY TO ... TYPE XL5
EXPORT TO ... TYPE XL5
I've always assumed that these commands just do a straight file conversion. They don't invoke Excel as a COM server, and they'll work just as well if Excel is not installed.
The reason I ask is that I just tried to do a COPY TO, but the target file was already open in Excel, so I got a lock violation error. Nothing unexpected about that.
Except that the error message was
Code:
OLE Error Code 0x80030021 : A lock violation has occurred
Note the "OLE error code". It's that that made me think that VFP is doing some OLE or COM behind the scenes, in which case it would fail if Excel was not available.
I don't have a machine that doesn't have Excel, so I can't try this for myself.
Can anyone throw any light on this?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business