PageSetupDialog.Enable
----------------------

Enables the page setup dialog extension.

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

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

none

### Result

Returns OK or error.

### Description

Enables the page setup dialog extension.  
Your page setup commands in FileMaker should show a dialog, so the plugin can intercept it.  
If you disable dialog for the FileMake Script step, the plugin has no way to intercept the printing.  
  
Use [Printer.SetPrinter](PrinterSetPrinter.md) for similar features on Windows.  
### Examples

Enable:

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

 Allow User Abort \[ Off \]  
Set Variable \[ $r ; Value: MBS ("[PageSetupDialog.Install](PageSetupDialogInstall.md)") \]   
Set Variable \[ $r ; Value: MBS ("PageSetupDialog.Enable") \]   
\# 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.Install](PageSetupDialogInstall.md)
- [PageSetupDialog.Reset](PageSetupDialogReset.md)
- [PageSetupDialog.SetPaperHeight](PageSetupDialogSetPaperHeight.md)
- [PageSetupDialog.SetPaperWidth](PageSetupDialogSetPaperWidth.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#3ScriptAnchor_)
- [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 7th June 2021

  
[PageSetupDialog.Disable](PageSetupDialogDisable.md) - [PageSetupDialog.GetLastSettings](PageSetupDialogGetLastSettings.md)

[HTML Version](PageSetupDialogEnable.shtml)