PrintDialog.SetFirstPage
------------------------

Sets first page.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PrintDialog](component_PrintDialog.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "PrintDialog.SetFirstPage"; Page ) 

**MBS**( **"PrintDialog.SetFirstPage"** /\* Sets first page. \*/  
**$Page**) /\* The first page to print. e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Page | The first page to print. | 2 |

### Result

Returns OK or error.

### Description

Sets first page.  
This property containing the one-based index of the first page in the job to print.  
Value is -1 if not defined.  
  
Showing the dialog may reset this as FileMaker may switch to all pages.  
### Examples

Print page 2 to 3 copies:

 Set Variable \[$r ; Value:MBS ("[PrintDialog.Enable](PrintDialogEnable.md)")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetFirstPage"; 2)\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetLastPage](PrintDialogSetLastPage.md)"; 3)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.Disable](PrintDialogDisable.md)")\]  
### See also

- [PrintDialog.Disable](PrintDialogDisable.md)
- [PrintDialog.Enable](PrintDialogEnable.md)
- [PrintDialog.GetFirstPage](PrintDialogGetFirstPage.md)
- [PrintDialog.GetLastPage](PrintDialogGetLastPage.md)
- [PrintDialog.GetPrintType](PrintDialogGetPrintType.md)
- [PrintDialog.SetAllPages](PrintDialogSetAllPages.md)
- [PrintDialog.SetLastPage](PrintDialogSetLastPage.md)
- [PrintDialog.SetPaperName](PrintDialogSetPaperName.md)
- [PrintDialog.SetPrinterName](PrintDialogSetPrinterName.md)
- [PrintDialog.SetPrintType](PrintDialogSetPrintType.md)

This function is free to use.

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

  
[PrintDialog.SetDuplex](PrintDialogSetDuplex.md) - [PrintDialog.SetLastPage](PrintDialogSetLastPage.md)

[HTML Version](PrintDialogSetFirstPage.shtml)