Friday, April 5, 2013

Get Page Number of the 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() ) + ")"))

No comments:

Post a Comment