Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data grouping
Message
De
12/04/2001 10:32:08
 
 
À
09/04/2001 22:27:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00493870
Message ID:
00494844
Vues:
19
Hello Budianto


Sometimes if I get stuck trying make a report behave the way I want I can often fix the report by using the little function below which I store in my procedure library. In your case another data grouping is probably needed to trigger the new page you require.
FUNC execute
PARAM xcmnd
&xcmnd
RETURN ''
Using this function you can embed a very flexible counter anywhere you like on the report including your detail lines.
eg.

EXECUTE('giMyCounter=giMyCounter+1')

You can have a phantom data grouping that starts a new page whenever the data grouping changes so a new page can be triggered by something like.

EXECUTE('giMyGroup=IIF(giMyCounter=40,giMyGroup+1,giMyGroup)')

in certain rare circumstances an EXECUTE('eject') can be used


VFP report writer also has the ability to run functions on entering and exiting each detail line, however EXECUTE() is more flexible as it can be used all over the report.


Hope some of this helps




>Hi all,
>
>Did anybody know how to determine the amount of rows in a page when using data grouping, so when the records has exceed the limit it will go to the next page ?
>
>
>Budianto M.
>-----------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform