Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating cool reports as Excel sheets
Message
From
04/04/2010 14:09:02
 
 
To
03/04/2010 12:57:07
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01458478
Message ID:
01458663
Views:
119
>>>This is the coolest technique since sliced bread.
>>>
>>>I have been creating very useful reports of accounting data as Excel sheets that use the Excel autofilter feature to present and total ad-hoc filtered views of data. Importing the accouning data and creating the spreadsheets is done directly from VFP in a straightforward, totally automatic and relatively fast way. When viewing the ad-hoc filtered views Excel runs super fast as usual. Seeing different cuts of the data one right after the other lets you get a good feel for the data.
>>>
>>>For the next step, I want to add the capability to drill-down into the data. The records are going to be there, just not visible until the user requests to see them. I think the Excel outline of rows feature will be the right tool, with calculated subtotals of hidden rows and then grand totals tha only sum detail data and not the intermediate subtotals. Cool.
>>>
>>>Suggestions are welcome.
>>
>>Hi Alejandro
>>
>>I am great fan of creating repots in excel as well. However over the period of years I abandoned idea of converting FRX reports to
>>excel output, because except for looking the same as original frx report, there is not much value added to it.
>>Instead I opted for doing it 'hard way' with coding all my crucial reports into Excel via class. (See rep2excel / Coderep )
>>
>>What I found really cool with excel, is usage of excel templates, where basically you prepare layout of report with all formulas
>>font formatting etc and then simply poke values into predefined sections of those templates. It does take little bit more time due to
>>OLE slugishness but results are really great.
>>What my users like the most are templates with (sub) totals on the top which when combined with autofiltering produce whole
>>bunch of other usefull subtotal figures. Then there are multisheet excels wich are filled up from application
>>with various app data which is brought together into meaningfull cross company results by excel formulas.
>>It is just amasing. Nothing beats excel when it comes to really usefull data presentations.
>>
>>BTW what do you use for writing excel ? OLE or something else ? I know that Christof W has some alternative way of writing excel
>>in his 'Excelporting' but don't know excatly how does it work. Did you by any chance try that one ?
>
>Hello Sergio,
>
>I use two methods. To present frx reports in excel I wrote a listener. It works, but I agree that to really take advantage of Excel that is not the best way. Not to mention it runs slowly. On the other hand, it provides an extra format option for existing reports.

>The other method is the one that has me excited. First create a cursor just as you want to appear in Excel, with right column names. As you know this executes very quickly. Then export it to an Excel worksheet using cursor2excel routine that I customized based on code from Cetin (export to recordset and then import to Excel). That runs very fast also. Lastly beautify it, in a similar manner to how you do it: add autofilter, add subtotal line at the top etc., coloring, lines. The best results come by using a multi worksheet reports on a single subject. Very useful format.
>>
>
>Next step is to include drilldown lines that remain hidden until user requests them.

This sounds cool.
I used 'hidden' excel data (far on the right) for data validation in excel, but was not aware that it could be used for drilldowns as well.
Which excel feature you have in mind ?

I do sport linked reports with drill-downs, but that is in Fox using RS Live Preview and reports which are done as forms. Still working on possibibilty to link multiple FRX (an other) reports together via drilldowns.

Now you got me really puzzled with this excel drilldown possibility. Unlike production app, excel can be taken 'on the road'
and my people will love it I am sure :)
Please keep it up / Looking forward to see some samples :)
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform