Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to generate automatic reports from a select
Message
From
06/04/2000 05:24:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/04/2000 04:39:14
Ramon Seoane
Molduras Del Noroeste
Cambre (Coruna), Spain
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00356150
Message ID:
00356152
Views:
13
>How can I create a report from code, like wizard does, in order
>to list data generated from different selects.
>For example.
>Select f1,f2,sum(f3),max(f4) from t1 into cursor c1
>f1:C(25) f2:D f3:N(10,0) f4:N(3,3)
>The program should be intelligent enough to take data types
>and modify a .frx template with minimum registers, and
>append new registers matching those fields.
>
>Troubles I find:
>Give the size and position of each field
>When there is grouping information, how to locate the fields
>in each band,
>and so on...
>
>Any help would be appreciated


Ramon,
Any alias could be used to create a quick report :
Select * from myTable into cursor myCursor
create report myReport from alias() column
modify report myReport
report form myReport preview
Grouping is a little harder to implement. You could insert precalculated rows into cursor to mimic grouping (not a true grouping all in detail band but seems as if there is grouping).
You have other options to hack frx, use tools like genrepox, crystal reports, foxfire, reporting to word, excel etc. In excel you could use pivot tables to create summary data info :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform