Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read Excel File
Message
De
24/10/2001 06:06:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/10/2001 02:06:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00572452
Message ID:
00572482
Vues:
55
>hi all,
>How do I read an Excel file row by row then import it to dbf ?
>
>*eg. MyExcel = GetObject(pathname)
>
>Thank you.

Chua,
Reading excel file row by row would be an overkill. Instead save as a dbf.
lcOutFile = 'mytable.dbf'
#define xlDBF3  8
#define xlDBF4  11
oExcel=createobject('Excel.Application')
with oExcel
 .Workbooks.Open(lcExistingXLSFullPath)
 .ActiveWorkBook.ActiveSheet.SaveAs(sys(5)+curdir()+lcOutFile,xlDBF3)
 .Quit
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform