Jump to Real's How-to Main page

Get the page count of a report

Put the datawindow into print preview mode
dw_1.modify &
  ( 'datawindow.print.preview=yes' )
Get the result of the 'PageCount()' expression
ll_PageCount = &
   long ( dw_1.describe &
     ("evaluate('pagecount()'," + string ( dw_1.rowcount() ) + ")"))

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]