PrintDialog.SetNoDialog
-----------------------

Sets whether dialog should show.

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

MBS( "PrintDialog.SetNoDialog"; Flag ) 

**MBS**( **"PrintDialog.SetNoDialog";** /\* Sets whether dialog should show. \*/  
**$Flag**) /\* Whether to show print dialog.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Flag | Whether to show print dialog. | 1 |

### Result

Returns OK or error.

### Description

Sets whether dialog should show.  
In FileMaker script step you need to use print with dialog. Then the plugin can control the dialog and either close it right away (with setting 1) or let it open (setting 0).  
### Examples

Disable dialog:

 Set Variable \[ $r ; Value: MBS ( "PrintDialog.SetNoDialog"; 1 ) \]  
Enable dialog:

 Set Variable \[ $r ; Value: MBS ( "PrintDialog.SetNoDialog"; 0 ) \]  
### See also

- [PrintDialog.Enable](PrintDialogEnable.md)
- [PrintDialog.GetNoDialog](PrintDialogGetNoDialog.md)
- [PrintDialog.Install](PrintDialogInstall.md)
- [PrintDialog.SetCopies](PrintDialogSetCopies.md)
- [PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)
- [PrintDialog.SetDuplex](PrintDialogSetDuplex.md)
- [PrintDialog.SetOption](PrintDialogSetOption.md)
- [PrintDialog.SetPrintToPDF](PrintDialogSetPrintToPDF.md)
- [PrintDialog.SetPrintType](PrintDialogSetPrintType.md)

### 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)

### 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 3th April 2021

  
[PrintDialog.SetLastPage](PrintDialogSetLastPage.md) - [PrintDialog.SetOption](PrintDialogSetOption.md)

[HTML Version](PrintDialogSetNoDialog.shtml)