Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to blah.xls type xl5 loses column widths
Message
From
28/02/2005 15:18:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/02/2005 20:27:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00991053
Message ID:
00991337
Views:
16
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform