Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import from Excel
Message
De
28/06/2004 19:53:54
 
 
À
28/06/2004 19:15:03
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00918198
Message ID:
00918204
Vues:
19
>I need to import an Excel file into a DBF.
>
>I keep having a problem with the width and types of fields.
>
>Naturally I have tried to export (save as) the Excel to a DBF (dbf 4)
>
>I have tried to import into the DBF from the Excel (appe from XL5)
>
>I have exported Excel to a txt file (several types)
>
>ALL have problems with filed width.
>
>I can export (save as) the Excel sheet to a PRN file (formatted Text ) space delimited and that works GREAT, except it will wrap the text around after about 250 characters wide.
>
>If I do the PRN, I just build a matching DBF with all character fields. That works great, but it can NOT be a wide excel sheet.
>
>How can I set the page width to 1500 characters????
>
>How can I save an Excel file such that I can import it into a DBF with exact same spacing or at least ALL fields type Character?

This may not address all of your questions, but have you experimented with the import command? It seems to handle most situations quite well.
IMPORT FROM 'c:\ub\sf_custom_query.xls' TYPE xl5
Hope this helps...
Thanks,

Stacy



Black Mountain Software, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform