Formulas for extracting page numbers in print presentations

Formula patterns

EXTRACTING DATA ABOUT

THE FORMULA TO USE

Page number in a print presentation

$PageNumber()$

Total number of pages in a print presentation

$PageCount$

Examples

TO DISPLAY

USE

YOU WILL SEE

The number of the current page and its place in the sequence of pages — for example, "Page 1 of 4". Page $PageNumber(); n0$ of $PageCount(); n0$ Page 1 of 4 (The n0 argument ensures that an integer is displayed as a result.)

IMPORTANT: List separator type

Throughout this guide, semicolon — (;) — is used to separate formula attributes. List separators are critical for how the program interprets the attributes within formulas. Your own system, however, may use a default list separator that is different from semicolon — for example, comma (,). In this case, if you simply copy a formula from the help guide and then paste it, error messages will appear and the formula will not calculate.

So while typing a formula, ensure that the list separator used in the formula is identical with the one set for your system. This means that you may need to edit either your system's list separator setting or the formula you are typing. The examples that follow illustrate how you can use formulas with semicolons and colons as list separators:

As presented in the help guide. list separator is semicolon (;)

type it like this if your list separator is comma (,)

$Layout1.Area(m; Plotting); n2$

$Layout1.Area(m, Plotting), n2$

$Layout1.AreaEx(yes; mm); n2$

$Layout1.AreaEx(yes, mm), n2$

$Layout1.SheetHeight(mm); n2$

$Layout1.SheetHeight(mm), n2$

$Fold3D1.BoundingBoxWidth(Production; mm; yes)$

$Fold3D1.BoundingBoxWidth(Production, mm, yes)$