PrintDialog.SetCopies
---------------------

Sets number of copies.

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

MBS( "PrintDialog.SetCopies"; Value ) 

**MBS**( **"PrintDialog.SetCopies";** /\* Sets number of copies. \*/  
**$Value**) /\* The new copies value.  
Use -1 for undefined.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new copies value.   Use -1 for undefined. | 2 |

### Result

Returns OK or error.

### Description

Sets number of copies.  
This property is the number of copies of the print job to be printed.  
Value is -1 if not defined.  
### Examples

Print with 5 copies:

 Set Variable \[$r ; Value:MBS ("[PrintDialog.Enable](PrintDialogEnable.md)")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetCopies"; 5)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.Disable](PrintDialogDisable.md)")\]  
### See also

- [PrintDialog.Disable](PrintDialogDisable.md)
- [PrintDialog.Enable](PrintDialogEnable.md)
- [PrintDialog.GetCopies](PrintDialogGetCopies.md)
- [PrintDialog.GetDuplex](PrintDialogGetDuplex.md)
- [PrintDialog.GetOption](PrintDialogGetOption.md)
- [PrintDialog.SetAllPages](PrintDialogSetAllPages.md)
- [PrintDialog.SetDuplex](PrintDialogSetDuplex.md)
- [PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)
- [PrintDialog.SetOption](PrintDialogSetOption.md)
- [PrintDialog.SetReset](PrintDialogSetReset.md)

### Release notes

- **Version 8.4**
    - Fixed a problem with [PrintDialog.SetCopies](http://www.mbsplugins.eu/PrintDialogSetCopies.shtml).

### 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 8.4pr8](https://www.mbsplugins.de/archive/2018-09-13/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th March 2016 , last changed 17th March 2016

  
[PrintDialog.SetConfiguration](PrintDialogSetConfiguration.md) - [PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)

[HTML Version](PrintDialogSetCopies.shtml)