Hi,
I want to import data from excel file into a vfp table. I tried with IMPORT command but it does not work...
here is the code i use:
Note: for the tests the excel file is in the application root folder.
At first i received the following error message:
"Microsoft Excel file format is invalid."
I tought i was probably because the excel was in excel 2007 and this format is not supported by vfp... then i saved it in excel 97-2003 format. Now it seems to be working for 10 seconds and then it gives me this message:
"Microsoft Visual FoxPro 9.0 SP2 has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is availiable."
Im out of ideas... any clue?
I want to import data from excel file into a vfp table. I tried with IMPORT command but it does not work...
here is the code i use:
Code:
MyFile = GETFILE("Excel *.xls:XLS","Import the excel file:","Import",0,"Choose the file to import")
IF NOT EMPTY(MyFile) THEN
IMPORT FROM JUSTFNAME(MyFile) TYPE XL8 && imports the XLS into a DBF
ENDIF
At first i received the following error message:
"Microsoft Excel file format is invalid."
I tought i was probably because the excel was in excel 2007 and this format is not supported by vfp... then i saved it in excel 97-2003 format. Now it seems to be working for 10 seconds and then it gives me this message:
"Microsoft Visual FoxPro 9.0 SP2 has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is availiable."
Im out of ideas... any clue?