PrintDialog.SetPrinterName
--------------------------

Sets printer name.

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

MBS( "PrintDialog.SetPrinterName"; Name ) 

**MBS**( **"PrintDialog.SetPrinterName";** /\* Sets printer name. \*/  
**$Name**) /\* The printer name.e.g. "My Printer" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The printer name. | "My Printer" |

### 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.  
### Examples

Sets printer name:

 MBS ( "PrintDialog.SetPrinterName"; "Test Printer" )  
### See also

- [PageSetupDialog.SetPrinterName](PageSetupDialogSetPrinterName.md)
- [PrintDialog.GetPaperName](PrintDialogGetPaperName.md)
- [PrintDialog.GetPrinterName](PrintDialogGetPrinterName.md)
- [PrintDialog.GetPrintToPDF](PrintDialogGetPrintToPDF.md)
- [PrintDialog.GetPrintType](PrintDialogGetPrintType.md)
- [PrintDialog.Reset](PrintDialogReset.md)
- [PrintDialog.SetFirstPage](PrintDialogSetFirstPage.md)
- [PrintDialog.SetPaperName](PrintDialogSetPaperName.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)
- [How to fix the Sierra printing bug in FileMaker](https://www.mbsplugins.de/archive/2016-10-17/How_to_fix_the_Sierra_printing/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 18th August 2014

  
[PrintDialog.SetPrintType](PrintDialogSetPrintType.md) - [PrintDialog.SetReset](PrintDialogSetReset.md)

[HTML Version](PrintDialogSetPrinterName.shtml)