Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saveas: do not keep incomp. functions, do not keep chang
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01243150
Message ID:
01243231
Views:
29
What Excel version are you in?

Anyway, I doubt that you are using the relable option for converting xls file to VFP table. Probably VFP IMPORT ... xl8 command would be better here.

If you wish, send to me any of your Excel files that is not converted properly. I will see what is going on in details.

Regards

>I use Excel by automation, to convert XLS to DBF.
>
>I do:
>
>loExcel = CREATEOBJECT("Excel.Application")
>loExcel.Workbooks.Open("Somefile.xls")
>loExcel.Workbooks.SaveAS("Somefile.dbf",8)  && Convert to dbf 3
>loExcel.Workbooks.Close(0)  && Close, do not keep changes
>loExcel.Quit
>
>
>This does the job, without user interface, BUT not for all XLS-files. Some of them convert completely, some of them only convert the first 2 or 3 columns.
>
>When I do it manually, so I press SaveAs fom the menu, choose dbf 3, choose Yes (leave incompatible functions out), close the window, choose No, I always get ALL columns.
>
>So, somewhere in the statements above something is missing, telling Excel to convert all columns.
>
>Should I state somewhere the equivalent of "leave incompatible functions out"? How?
>
>TIA
>
>Lennert
Previous
Reply
Map
View

Click here to load this message in the networking platform