Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to blah.xls type xl5 loses column widths
Message
De
28/02/2005 15:18:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/02/2005 20:27:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00991053
Message ID:
00991337
Vues:
21
>>I've been using COPY to blah.xls TYPE XLS for years, but just found out that using TYPE XL5 formats dates properly. The problem with XL5 is that my column widths are all lost and each is the exact same default width. Any ideas how to solve this?
>
>I would use Automation to change the column widths, after creating the Excel file.
>
>Doing everything with Automation (copying one cell at a time) would be much slower, so using COPY TO ... XL5 does make sense.

Not necessarily. I'm doing _vfp.datatoclip(,,3) and then pasting it via automation. Extremely fast. Also, I'd have a template sheet, pre-formatted, and then saveas() after pasting. The longest part of this is instantiation of Excel.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform