Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with _pageno
Message
 
À
07/11/2001 11:50:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00578137
Message ID:
00578560
Vues:
16
>- create two variables:
>nLastPage, calculate nothing, initial value 1
>nGValue, calculate nothing, initial value a blank of the same type as your group expression.
>- in group's On Entry expression store the function call, in my case it was ResetP()
>
>resetp.prg:
>
nGroupVal=Int(pk/20)
>If nGValue#nGroupVal
>	nGValue=nGroupVal
>	nLastPage=_Pageno
>Endif
>Instead of _pageno, print _pageno-nLastPage+1. BUT - it prints fine in group header only. Anywhere else, in page header, page footer, group footer - it behaves as if nLastPage=1. Confuses the hell out of me, and IMO, the internals of Fox reporting engine are more confusing than Hayes modem sequences :).

lol...

I wanted this to print in the page header, instead of the group header. It is possible that my "Page" Group could span more than one page(even though it doesn't in my code example).

Anyway, I appreciate the time you guys have spent on this. I think I'll give up for now.

Paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform