Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The total page of a Report in Report Generating
Message
De
12/01/2001 02:13:53
 
 
À
12/01/2001 02:09:08
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00462808
Message ID:
00462809
Vues:
12
>Dear all,
>
>I generate various report by the "REPORT FORM ...." Commands.
>
>In order to make a footer "Page XX of XXXX", I implement the folowing code to calculate the total page of the report.
>
>:
>:
>local tpage
>report form "TheReport" preview noconsole
>tpage=_pageno
>report form "TheReport" to print
>:
>:
>inwhich at the report footer I put "Page "+ str(_pageno) + " of "+ str(tpage)
>at the bottom of the report
>
>However, I get for example "Page 18 of 17"
>
>How can I fix the bug, or otherwise, implement better coding?
>
>
>
>Yours fauithfully,
>
>Ransome

What do you get on the *first* page of the report? Is your report actually 17, or 18 pages long?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform