Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating cool reports as Excel sheets
Message
From
04/04/2010 23:36:12
 
 
To
02/04/2010 07:08:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01458478
Message ID:
01458687
Views:
107
>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform