Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Export To EXCEL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01120556
Message ID:
01120559
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform