PageSetupDialog.SetPrinterName
------------------------------

Sets printer name.

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

MBS( "PageSetupDialog.SetPrinterName"; Name ) 

**MBS**( **"PageSetupDialog.SetPrinterName";** /\* Sets printer name. \*/  
**$Name**) /\* The printer name to use. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The printer name to use. |  |

### Result

Returns OK or error.

### Description

Sets printer name.  
The plugin will try to find a printer with the given name and assigns it for the printing.  
You need to run paper setup dialog to let the plugin change values.  
  
The printer set for paper setup may not be the one used for printing.  
The dialog will not show the one you select here, if you show dialog.  
### See also

- [PageSetupDialog.GetPaperName](PageSetupDialogGetPaperName.md)
- [PageSetupDialog.GetPrinterName](PageSetupDialogGetPrinterName.md)
- [PageSetupDialog.SetPaperName](PageSetupDialogSetPaperName.md)
- [PrintDialog.SetPrinterName](PrintDialogSetPrinterName.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_)

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

This function checks for a license.

Created 20th April 2019 , last changed 14th July 2022

  
[PageSetupDialog.SetPaperWidth](PageSetupDialogSetPaperWidth.md) - [PageSetupDialog.SetScalingFactor](PageSetupDialogSetScalingFactor.md)

[HTML Version](PageSetupDialogSetPrinterName.shtml)