PageSetupDialog.SetNoDialog
---------------------------

Sets whether dialog should show.

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

MBS( "PageSetupDialog.SetNoDialog"; Flag ) 

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

### Parameters

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

### Result

Returns OK or error.

### Description

Sets whether dialog should show.  
In FileMaker script step you need to use page setup 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

Set to show dialog:

 Set Variable \[ $r ; Value: MBS ("PageSetupDialog.SetNoDialog"; 0) \]  
No dialog, please:

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

- [PageSetupDialog.GetNoDialog](PageSetupDialogGetNoDialog.md)
- [PageSetupDialog.GetOption](PageSetupDialogGetOption.md)
- [PageSetupDialog.SetOption](PageSetupDialogSetOption.md)
- [PageSetupDialog.SetPaperHeight](PageSetupDialogSetPaperHeight.md)
- [PageSetupDialog.SetPaperWidth](PageSetupDialogSetPaperWidth.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 3th April 2021

  
[PageSetupDialog.Reset](PageSetupDialogReset.md) - [PageSetupDialog.SetOption](PageSetupDialogSetOption.md)

[HTML Version](PageSetupDialogSetNoDialog.shtml)