Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PrintDialog.SetLastPage
Sets last page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PrintDialog | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "PrintDialog.SetLastPage"; Page ) More
Parameters
Parameter | Description | Example |
---|---|---|
Page | The last page to print. | 2 |
Result
Returns OK or error.
Description
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.
Examples
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
- PrintDialog.Disable
- PrintDialog.Enable
- PrintDialog.GetAllPages
- PrintDialog.GetFirstPage
- PrintDialog.GetLastPage
- PrintDialog.SetAllPages
- PrintDialog.SetFirstPage
- PrintDialog.SetPaperName
This function is free to use.
Created 17th March 2016, last changed 17th March 2016