PageSetupDialog.Install
-----------------------

Installs the extension for the page setup dialog.

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

MBS( "PageSetupDialog.Install" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Installs the extension for the page setup dialog.  
Only after PageSetupDialog.Install was called, you can use [PageSetupDialog.Enable](PageSetupDialogEnable.md).  
You only call this function once.  
  
This is Mac only. For Windows, please check [Printer.SetPrinter](PrinterSetPrinter.md) and [Printer.Print](PrinterPrint.md).  
### Examples

Initialize paper setup dialog:

 Set Variable \[ $r ; Value: MBS ("PageSetupDialog.Install") \]  
Run dialog with plugin:

 Allow User Abort \[ Off \]  
Set Variable \[ $r ; Value: MBS ("PageSetupDialog.Install") \]   
Set Variable \[ $r ; Value: MBS ("[PageSetupDialog.Enable](PageSetupDialogEnable.md)") \]   
\# set options here   
Set Variable \[ $r ; Value: MBS ( "[Schedule.EvaluateAfterDelay](ScheduleEvaluateAfterDelay.md)"; ,1; "MBS ( \\"[Menubar.RunMenuCommand](MenubarRunMenuCommand.md)\\"; 57606 )") // run Page Setup Dialog in 0.1 seconds \]   
Pause/Resume Script \[ Duration (seconds): 1 \]  
### See also

- [Menubar.RunMenuCommand](MenubarRunMenuCommand.md)
- [PageSetupDialog.Disable](PageSetupDialogDisable.md)
- [PageSetupDialog.Enable](PageSetupDialogEnable.md)
- [PageSetupDialog.Reset](PageSetupDialogReset.md)
- [Printer.Print](PrinterPrint.md)
- [Printer.SetPrinter](PrinterSetPrinter.md)
- [Schedule.EvaluateAfterDelay](ScheduleEvaluateAfterDelay.md)

### Example Databases

- [Mac only/Print/Page Setup Dialog on Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Print/Page%20Setup%20Dialog%20on%20Mac.shtml#1ScriptAnchor_)
- [Mac only/Print/Page Setup Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Print/Page%20Setup%20Dialog.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 23 - Printing a PDF](https://www.mbsplugins.de/archive/2024-12-23/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [Page Setup Dialog example](https://www.mbsplugins.de/archive/2019-06-01/Page_Setup_Dialog_example/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th April 2019 , last changed 20th April 2019

  
[PageSetupDialog.GetScalingFactor](PageSetupDialogGetScalingFactor.md) - [PageSetupDialog.Reset](PageSetupDialogReset.md)

[HTML Version](PageSetupDialogInstall.shtml)