You can use the _PAGETOTAL system variable.
>I copied the following piece of code to my form :
>
>* Know total pages to print
>DEFINE WINDOW x FROM 1,1 TO 20,20
>ACTI WINDOW x
>REPORT FORM fmto_fact_prueba
>vp_TotHojas= _pageno
>RELEASE WINDOW x
>
>vp_TotHojas is Set To 3, but when I send to printer, I get 4 Hojas printed.
>Printer Is Epso LX 300+II
>
>What I need to do to get correct number of total pages before to print ?
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer