Share this page 

Get the page count of a reportTag(s): Datawindow


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() ) + ")"))