GetLayoutPages()

Summary

Gets the number of printed pages in a layout.

Syntax

dims = GetLayoutPages(string layout_name)

Argument Contents
layout_name The name of the layout, or null for the current layout

Returns

An array of two elements:

Element Type Contents
1 Integer The width in pages
2 Integer The height in pages

Example

dim = GetLayoutPages("My Layout")
ShowMessage("The layout will print on " + String(dim[1] * dim[2]) + " pages.")

Error Codes

Error Type Meaning
NotFound The specified layout does not exist

See Also

Function Summary
SetLayoutPages() Sets the number of printed pages in a layout