PrintDialog.Enable
------------------

Enables the print dialog extension.

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

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

none

### Result

Returns OK or error.

### Description

Enables the print dialog extension.  
Your print 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.  
  
Calls [PrintDialog.Install](PrintDialogInstall.md) internally if needed.  
### Examples

Install and print to PDF:

 Set Variable \[$r ; MBS ( "[PrintDialog.Install](PrintDialogInstall.md)")\]  
Set Variable \[$r ; MBS ( "PrintDialog.Enable")\]  
Set Variable \[$r ; MBS ( "[PrintDialog.SetPrintToPDF](PrintDialogSetPrintToPDF.md)"; 1)\]  
Set Variable \[$r ; MBS ( "[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test.pdf")\]  
Set Variable \[$r ; MBS ( "[PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)"; 1 )\]  
Print \[\]  
### See also

- [PrintDialog.GetConfiguration](PrintDialogGetConfiguration.md)
- [PrintDialog.GetLastSettings](PrintDialogGetLastSettings.md)
- [PrintDialog.SetConfiguration](PrintDialogSetConfiguration.md)
- [PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)
- [PrintDialog.SetFirstPage](PrintDialogSetFirstPage.md)
- [PrintDialog.SetLastPage](PrintDialogSetLastPage.md)
- [PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)
- [PrintDialog.SetPrintToPDF](PrintDialogSetPrintToPDF.md)
- [PrintDialog.SetPrintType](PrintDialogSetPrintType.md)
- [PrintDialog.SetResetDestination](PrintDialogSetResetDestination.md)

### Release notes

- **Version 7.4**
    - Changed [PrintDialog.Enable](http://www.mbsplugins.eu/PrintDialogEnable.shtml) to call [PrintDialog.Install](http://www.mbsplugins.eu/PrintDialogInstall.shtml) for you if needed.

### Example Databases

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

### 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)
- [Control printing in FileMaker with MBS Plugin on MacOS](https://www.mbsplugins.de/archive/2023-06-11/Control_printing_in_FileMaker_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.4pr1](https://www.mbsplugins.de/archive/2017-08-01/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [How to fix the Sierra printing bug in FileMaker](https://www.mbsplugins.de/archive/2016-10-17/How_to_fix_the_Sierra_printing/monkeybreadsoftware_blog_filemaker)
- [Printing with FileMaker on Mac with a specific Paper Tray](https://www.mbsplugins.de/archive/2016-02-16/Printing_with_FileMaker_on_Mac/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2017, Seite 22](https://filemaker-magazin.de/neuigkeit/3961-Appetithappen-FMM_201705)

This function checks for a license.

Created 18th August 2014 , last changed 8th March 2024

  
[PrintDialog.Disable](PrintDialogDisable.md) - [PrintDialog.GetAllPages](PrintDialogGetAllPages.md)

[HTML Version](PrintDialogEnable.shtml)