Friday, September 23, 2005
Tip of the Day: Getting the Total Number of Pages in a Report
Versions: R:BASE 7.5 and V-8 Turbo for Windows
Did you know that using the GETPROPERTY command, now you can get the
total number of pages in a report?
Here's how:
Use the following custom EEP as After Generate EEP for Report Footer:
-- start
SET VAR vTotPageCount TEXT = NULL
GETPROPERTY REPORT TotalPageCount 'vTotPageCount'
SET VAR vPauseMessage = ('Total Number of Pages:'&.vTotPageCount)
PAUSE 2 USING .vPauseMessage +
CAPTION 'GETPROPERTY in Reports' +
ICON INFO +
BUTTON 'Press any key to continue ...' +
OPTION BACK_COLOR WHITE +
|MESSAGE_COLOR WHITE +
|MESSAGE_FONT_COLOR GREEN
CLS
RETURN
-- end
Enjoy and make sure to have fun!
Very Best R:egards,
Razzak.