IKScannerDevicePanel.SetDocumentName
------------------------------------

Set the document name.

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

MBS( "IKScannerDevicePanel.SetDocumentName"; Name ) 

**MBS**( **"IKScannerDevicePanel.SetDocumentName";** /\* Set the document name. \*/  
**$Name**) /\* The file name to use.  
File extensions and numbers may be added.e.g. "Scan" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The file name to use.   File extensions and numbers may be added. | "Scan" |

### Result

Returns OK or error.

### Description

Set the document name.  
Please set before the panel opens.  
In 8.2 or newer, you can set it while panel is open, too.  
### Examples

Set the file name:

 Set Variable \[$r ; Value:MBS ( "IKScannerDevicePanel.SetDocumentName"; "Scan" )\]  
### See also

- [IKScannerDevicePanel.GetDocumentName](IKScannerDevicePanelGetDocumentName.md)
- [IKScannerDevicePanel.SetCombine](IKScannerDevicePanelSetCombine.md)
- [IKScannerDevicePanel.Show](IKScannerDevicePanelShow.md)

### Release notes

- **Version 14.1**
    - Improved [IKScannerDevicePanel.Reset](https://www.mbsplugins.eu/IKScannerDevicePanelReset.shtml) to clear values set with [IKScannerDevicePanel.SetDocumentName](https://www.mbsplugins.eu/IKScannerDevicePanelSetDocumentName.shtml), [IKScannerDevicePanel.SetScanControlLabel](https://www.mbsplugins.eu/IKScannerDevicePanelSetScanControlLabel.shtml) and [IKScannerDevicePanel.SetOverviewControlLabel](https://www.mbsplugins.eu/IKScannerDevicePanelSetOverviewControlLabel.shtml), too.
- **Version 8.2**
    - Changed [IKScannerDevicePanel.SetDocumentName](http://www.mbsplugins.eu/IKScannerDevicePanelSetDocumentName.shtml) to change the name in the panel while it's open.

### Example Databases

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

### Blog Entries

- [MBS FileMaker Plugin, version 14.1pr2](https://www.mbsplugins.de/archive/2024-02-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.2pr8](https://www.mbsplugins.de/archive/2018-05-16/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 7th November 2016 , last changed 15th May 2018

  
[IKScannerDevicePanel.SetCombine](IKScannerDevicePanelSetCombine.md) - [IKScannerDevicePanel.SetDownloadsDirectory](IKScannerDevicePanelSetDownloadsDirectory.md)

[HTML Version](IKScannerDevicePanelSetDocumentName.shtml)