Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE - Table to Excel file?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00135005
Message ID:
00135695
Views:
11
>Barbara,
>
>You sent me something by email that I've been searching for. Setting column sizes in code before the export. Hopefully one day I'll be able to keep this stuff in my head.
>
>Perry

Perry, I didn't find it in my files, but I think you have it backwards. You do the formatting AFTER exporting to an XLS file. Open Excel with OLE Automation, open the file you exported, then do all the formatting. If you want to let your viewer see/change the file, add an oExcel.visible = .t. at the end of the formatting (where oExcel is the Excel Object). Otherwise, just add save/quit commands and your file is ready to e-mail, store, etc.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform