DynaPDF.Print.SetDevNames
-------------------------

Sets device names.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [7.0](newinversion70.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DynaPDF.Print.SetDevNames"; DeviceNames ) 

**MBS**( **"DynaPDF.Print.SetDevNames";** /\* Sets device names. \*/  
**$DeviceNames**) /\* The list of device names.  
First item in list is optional driver name.  
Second item is optional devicen name.  
Third item is optional output port name.  
Forth item is optional flags value.  
  
Pass empty string to clear it. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| DeviceNames | The list of device names.   First item in list is optional driver name.   Second item is optional devicen name.   Third item is optional output port name.   Forth item is optional flags value.      Pass empty string to clear it. |  |

### Result

Returns OK or error.

### Description

Sets device names.  
Sets the printer for printing on Windows with [DynaPDF.Print](DynaPDFPrint.md) function.  
See also [Print](https://www.monkeybreadsoftware.com/DynaPDF-Manual/PrintPDFFile.shtml) function in DynaPDF manual.

### Examples

Set PDF printer:

 MBS ( "DynaPDF.Print.SetDevNames"; "winspool¶Microsoft Print to PDF" )  
### See also

- [DynaPDF.Print](DynaPDFPrint.md)
- [DynaPDF.Print.FormNames](DynaPDFPrintFormNames.md)
- [DynaPDF.Print.GetDevMode](DynaPDFPrintGetDevMode.md)
- [DynaPDF.Print.GetDevNames](DynaPDFPrintGetDevNames.md)
- [DynaPDF.Print.SetDevMode](DynaPDFPrintSetDevMode.md)
- [DynaPDF.Print.SetSetting](DynaPDFPrintSetSetting.md)

### Release notes

- **Version 7.0**
    - Added [DynaPDF.Print.GetDevMode](http://www.mbsplugins.eu/DynaPDFPrintGetDevMode.shtml), [DynaPDF.Print.GetDevNames](http://www.mbsplugins.eu/DynaPDFPrintGetDevNames.shtml), [DynaPDF.Print.SetDevMode](http://www.mbsplugins.eu/DynaPDFPrintSetDevMode.shtml) and [DynaPDF.Print.SetDevNames](http://www.mbsplugins.eu/DynaPDFPrintSetDevNames.shtml).

### Example Databases

- [DynaPDF/Print PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Print%20PDF.shtml#5ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.0pr4](https://www.mbsplugins.de/archive/2017-01-19/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th January 2017 , last changed 9th August 2021

  
[DynaPDF.Print.SetDevMode](DynaPDFPrintSetDevMode.md) - [DynaPDF.Print.SetSetting](DynaPDFPrintSetSetting.md)

[HTML Version](DynaPDFPrintSetDevNames.shtml)