Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating cool reports as Excel sheets
Message
De
04/04/2010 23:36:12
 
 
À
02/04/2010 07:08:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01458478
Message ID:
01458687
Vues:
108
>PS: Moving fields to different positions (ie: exchange yearOrdered with salesman or add to salesman or move to first position etc) show different summaries. Also simplest pivot show a single "data" item (the numbers) while you could add multiple calculations (like you can show sum, count, frequency, percentage of an item instead of just quantity sold). Click a number and + from toolbar:)
>
>Cetin

Hi Cetin,
IF .F.
     Perhaps you know how to do this.  First create a cursor with string fields, some of which contain numbers as strings (for 
     example "  5.00") and other contain formulas as strings (for example "=SUBTOTAL(9,H4:H10)")

     Next, send the cursor to Excel via ADODB as before.

     Now, how do you convert the strings to Excel numbers and formulas from VFP using automation?
ENDIF
Found a simpler approach:
1) Insert subtotal lines directly in cursor in appropriate place: values not formulas,
2) Export cursor to Excel as usual
3) With automation, create outline as explained in this page: http://www.ozgrid.com/Excel/outlining-manual.htm

Thanks,

Alex

P.S.
Just realized that if I want to use autofilter technique with a line of subtotals the intermediate subtotals (which are values and not formulas in this approach) will be double counted. That doesn't happen if intermediate subtotals are formulas. Hmmm...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform