Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SSN & Excel
Message
 
 
À
05/06/2006 14:25:11
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01127150
Message ID:
01127174
Vues:
19
>>>Most likely you have character field, and Excel does not want to recognize it as numbers when applying NumberFormat. Either reformat it on FoxPro site before importing, or use numeric fields.
>>>
>>Using numeric worked, but the number is adjusted to the right, which I don't like. I think I would rather transform it myself.
>>
>>Thanks again.
>
>If you want to override the aligment for a cell or a column
>
>
>   CellOrColumnRef.HorizontalAlignment = -4152 && 'xlRight'
>CellOrColumnRef.HorizontalAlignment = -4131 && xlLeft
>
Thanks, Gregory. It's not that simple, since I'm using my generic routine to create XLS from DBF. I'm not certain if we may want to align all numbers to the left, so I better leave the default setting.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform