Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Export To EXCEL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01120556
Message ID:
01120559
Views:
16
>Trying to Export a table into XLS Spreadsheet, the data in the table is being grouped. I want to be able to Insert an empty row and automatically calculate the total of a Column called OrdCnt below the empty row to display totals of OrdCnt.


Use COM Automation. Anything you want to do in Excel, you can record a macro for it then translate the VBA generated code to VFP (it's fairly similar and easy).

First you take a reference with:
oExcel = CreateObject("Excel.Application")
then you have access to the whole Excel DOM.

See: http://fox.wikis.com/wc.dll?Wiki~AutomationExamples


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform