Graphics.LastPage

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aGraphics.LastPage

Supported for all project types and targets.

The value in the "To" field of the Print dialog box.

Notes

This property is meaningful only when the graphics object was created by the OpenPrinterDialog function.