Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page X of Y?
Message
 
 
À
31/10/2001 07:29:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00575536
Message ID:
00575601
Vues:
24
>>Hi Again Guys,
>> I have a report and I want it to display the curent page together with the last page of the report as a footnote. Something like:
>>
>>Page X of Y
>>
>>where X is the current page and Y is the last page. Any ideas on how I should go about doing this? Thanks in advance for all your help.
>>
>>Regards, Richard.
>
>VFP has no built-in method for determining the total number of pages on a report.
>
>One workaround is to count the record numbers. Suppose you have 40 lines on each page:
>
>
>select ... into TmpReportCursor
>LinesPerPage = 40
>NumberOfPages = ceiling(reccount() / LinesPerPage)
>report form MyReport ...
>
>
>HTH, Hilmar.

Hilmar,
This really doesn't work out unless the only thing on the report is a detail band with the specified detail elements and there is no spacing around it. If spacing is added so you can read the report, the calculations get skewed.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform