Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Count Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
01186301
Message ID:
01186310
Vues:
17
What exactly are trying to do? Display page count while printing? Determine how many pages there will be before printing? Determining the final number of pages? Crystal, like Fox, can't know page numbers until it actually prints.

>We are using the following code to determine the page count:
>
>
>
>WITH ThisForm
>
>	oPrintingStatus = .oCRReport.PrintingStatus
>
>	sErr = ON("ERROR")
>	ON ERROR lErrored = .T.
>
>	.txtTotalPages.Value = oPrintingStatus.NumberOfPages()
>
>	ON ERROR &sErr
>
>	oPrintingStatus = .NULL.
>
>	.txtTotalPages.Refresh()
>
>ENDWITH
>
>
>
>The problem is that this causes Crystal to call the SQL stored proc to
>get the data. Then the proc is called again when the report shows.
>
>Is there a different way to get the page count?
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform