Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets last page.

Component Version macOS Windows Linux Server iOS SDK
PrintDialog 6.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "PrintDialog.SetLastPage"; Page )   More


Parameter Description Example
Page The last page to print. 2


Returns OK or error.


Sets last page.
This property containing the one-based index of the last page in the job to print.
Value is -1 if not defined.


Print page 2 to 3 copies:

Set Variable [$r; Value:MBS("PrintDialog.Enable")]
Set Variable [$r; Value:MBS("PrintDialog.SetFirstPage"; 2)]
Set Variable [$r; Value:MBS("PrintDialog.SetLastPage"; 3)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.Disable")]

See also

This function is free to use.

Created 17th March 2016, last changed 17th March 2016

PrintDialog.SetFirstPage - PrintDialog.SetNoDialog