Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to generate automatic reports from a select
Message
De
06/04/2000 05:24:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/04/2000 04:39:14
Ramon Seoane
Molduras Del Noroeste
Cambre (Coruna), Espagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00356150
Message ID:
00356152
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform