DEFINE WINDOW MyRptWindow FROM 0,0 TO 25,80 ;
TITLE 'Dummy Printing'
ACTIVATE WINDOW MyRptWindow NOSHOW
GLOBAL gnLastPage = 0
REPO FORM XXXXXXX
gnLastPage = _PAGENO
RELEASE WINDOW MyRptWindow
* Now print for real, using gnLastPage WITH REAL PAGE No.
(_PageNo 'OF' gnLastPage) can be used in report form.
**
Hope this helps
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.