IKScannerDevicePanel.SetScannerDeviceName
-----------------------------------------

Selects scanner by name.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageCapture](component_ImageCapture.md) | [6.5](newinversion65.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "IKScannerDevicePanel.SetScannerDeviceName"; Name ) 

**MBS**( **"IKScannerDevicePanel.SetScannerDeviceName";** /\* Selects scanner by name. \*/  
**$Name**) /\* The name of the scanner to use.e.g. "Brother DCP-8085DN" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The name of the scanner to use. | "Brother DCP-8085DN" |

### Result

Returns OK or error.

### Description

Selects scanner by name.  
Since v14.1 this function also sets the device to be the current device for all [ImageCapture](component_ImageCapture.md) functions.  
### Examples

Select scanner by name:

 Set Variable \[$r ; Value:MBS ( "IKScannerDevicePanel.SetScannerDeviceName"; "Brother DCP-8085DN")\]  
Select scanner by ID:

 Set Variable \[$r ; Value:MBS ( "[IKScannerDevicePanel.SetScannerDeviceID](IKScannerDevicePanelSetScannerDeviceID.md)"; "61B0A8E1-61B0-A8E1-61B0-A8E161B0A8E1" )\]  
### See also

- [IKScannerDevicePanel.GetScannerDeviceID](IKScannerDevicePanelGetScannerDeviceID.md)
- [IKScannerDevicePanel.GetScannerDeviceName](IKScannerDevicePanelGetScannerDeviceName.md)
- [IKScannerDevicePanel.SetScannerDeviceID](IKScannerDevicePanelSetScannerDeviceID.md)
- [IKScannerDevicePanel.Show](IKScannerDevicePanelShow.md)

### Example Databases

- [Mac only/ImageCapture/ImageCapture Dialogs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/ImageCapture/ImageCapture%20Dialogs.shtml#2ScriptAnchor_)

This function is free to use.

Created 7th November 2016 , last changed 25th January 2024

  
[IKScannerDevicePanel.SetScannerDeviceID](IKScannerDevicePanelSetScannerDeviceID.md) - [IKScannerDevicePanel.SetTrigger](IKScannerDevicePanelSetTrigger.md)

[HTML Version](IKScannerDevicePanelSetScannerDeviceName.shtml)