Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data grouping
Message
From
12/04/2001 10:32:08
 
 
To
09/04/2001 22:27:09
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00493870
Message ID:
00494844
Views:
18
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.
>-----------
Previous
Reply
Map
View

Click here to load this message in the networking platform