Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with _pageno
Message
From
06/11/2001 17:54:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00578137
Message ID:
00578273
Views:
28
>I have an frx with 5 data groupings. Data groupings 1 and 2 have the option selected that starts on a new page. Data grouping 1 has the option selected to reset the page numbers.
>
>The problem is that data grouping 2 also resets the pages even thought I don't have it checked.
>
>IOW, grouping 1 = store location, grouping 2 = categories. Everytime the category changes I want it to start on a new page but not reset the _pageno. But once we switch to a new store location I want it to begin on a new page and start with Page 1 again.
>
>Everything starts on a new page correctly..its just that my page# is always 1.
>
>I have 2 different reports where I am having the same problem. I did a lot of searching on this subject and haven't found anything...so I assume I am doing something stupid here, but I can't figure out what it is..

Here's a cheezy and dirty trick, but might work. Create a report variable nPages, set it to zero, calculate nothing. Write a function, name it, p.e. StoreNPages.prg:
nPages=nPages+_pageno
(yes, a one-liner), and call that function on exit in category group. Instead of _pageno, print nPages+_pageno. That's it.

Or if you are having the oposite problem, that the _pageno is not resetting, and you need it reset, this can work as well, even simpler. Forget the report variable, and just have a function which will set _pageno=0 each time your group exits.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform