Specifications
CHAPTER 24 DataWindow Expression and InfoMaker Functions
Users Guide 719
This example obtains the absolute page number for the first row on the page in
the string variable ret:
string ret, row
row = dw1.Object.DataWindow.FirstRowOnPage
ret = dw1.Describe("Evaluate('pageabs()', "+row+")")
See also
Page
PageCount
PageCountAcross
PageAcross
Description Gets the number of the current horizontal page. For example, if a report is twice
the width of the print preview window and the window is scrolled horizontally
to display the portion of the report that was outside the preview, PageAcross
returns 2 because the current page is the second horizontal page.
Syntax PageAcross ( )
Return value
Long. Returns the number of the current horizontal page if it succeeds and –1
if an error occurs.
Examples This expression returns the number of the current horizontal page:
PageAcross()
See also
Page
PageCount
PageCountAcross
PageCount
Description Gets the total number of pages when a report is being viewed in Print Preview.
This number is also the number of printed pages if the report is not wider than
the preview window. If the report is wider than the preview window, the
number of printed pages will be greater than the number
PageCount gets.
Syntax PageCount ( )
Return value
Long. Returns the total number of pages.