Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select page to print
Message
De
20/05/2001 13:51:53
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00509177
Message ID:
00509218
Vues:
18
>In the procedure, which calls your report, put
>private nLastPage
>nLastPage=0

>In Init of your report you can put:

> if vartype(m.nLastPage)="N"
> if m.nLastPage>0 && Last Page was already calculated
> else
> report form myReport to file dummy.txt noconsole
> nLastPage=_pageno
> erase dummy.txt
> endif
> else
> && Should never happend, but if it's, the calling procedure doesn't set >this property
> endif

Nadya,

I will not call the report from with the Init of the report. This may get
into an infinite loop.
I would rather do it in 2 report form statements:
report form myreport NOCONSOLE
M.nLastPage=_pageno
report form myreport TO PRINT NOEJECT NOCONSOLE NOWAIT

Kam.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform