PrintDialog.SetDuplex
---------------------

Sets duplex mode for next printing.

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

MBS( "PrintDialog.SetDuplex"; Value ) 

**MBS**( **"PrintDialog.SetDuplex";** /\* Sets duplex mode for next printing. \*/  
**$Value**) /\* The new duplex setting.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new duplex setting. | 1 |

### Result

Returns OK or error.

### Description

Sets duplex mode for next printing.  
Pass 0 for no duplex, 1 to enable duplex and -1 to not change it.  
Version 6.5 adds 2 for duplex with tumble.  
Version 7.5 changes value: 0 = off, 1 = long edge, 2 = short edge  
### Examples

Enable duplex:

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

- [PrintDialog.GetCopies](PrintDialogGetCopies.md)
- [PrintDialog.GetDuplex](PrintDialogGetDuplex.md)
- [PrintDialog.SetCopies](PrintDialogSetCopies.md)
- [PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)
- [PrintDialog.SetOption](PrintDialogSetOption.md)
- [PrintDialog.SetReset](PrintDialogSetReset.md)

### Release notes

- **Version 7.0**
    - Fixed [PrintDialog.SetDuplex](http://www.mbsplugins.eu/PrintDialogSetDuplex.shtml) function (broken in 6.5).

### Blog Entries

- [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.0pr2](https://www.mbsplugins.de/archive/2017-01-09/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 25th November 2017

  
[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md) - [PrintDialog.SetFirstPage](PrintDialogSetFirstPage.md)

[HTML Version](PrintDialogSetDuplex.shtml)