Container.Screenshot
--------------------

Takes screenshot from a named control in FileMaker.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Container](component_Container.md) | [11.4](newinversion114.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Container.Screenshot"; Name ) 

**MBS**( **"Container.Screenshot";** /\* Takes screenshot from a named control in FileMaker. \*/  
**$Name**) /\* Name of the control on screen.e.g. "web" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | Name of the control on screen. | "web" |

### Result

Returns container value or error.

### Description

Takes screenshot from a named control in FileMaker.  
This function was developed to take a screenshot of a container control, but it also works for any other control like WebViewers.  
### Examples

Take screenshot of a button:

 Set Field \[ Test::Picture ; MBS ("Container.Screenshot"; "button") \]  
Take screenshot of Web Viewer:

 Set Field \[ Webviewer::Image ; MBS ("Container.Screenshot"; "web") \]  
### See also

- [Screenshot](Screenshot.md)
- [WebView.Screenshot](WebViewScreenshot.md)

### Release notes

- **Version 13.1**
    - Fixed ScreenshotRect, [Container.Screenshot](https://www.mbsplugins.eu/ContainerScreenshot.shtml) and [WebView.Screenshot](https://www.mbsplugins.eu/WebViewScreenshot.shtml) for Windows to better use right DPI for high DPI screens.
- **Version 11.4**
    - Added [Container.Screenshot](https://www.mbsplugins.eu/ContainerScreenshot.shtml) function, which may replace [WebView.Screenshot](https://www.mbsplugins.eu/WebViewScreenshot.shtml) for some users.

### Blog Entries

- [MBS FileMaker Plugin, version 13.1pr6](https://www.mbsplugins.de/archive/2023-03-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 11.4](https://www.mbsplugins.de/archive/2021-09-15/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.4](https://www.mbsplugins.de/archive/2021-09-07/Neues_MBS_FileMaker_Plugin_114/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.4 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-09-07/MBS_FileMaker_Plugin_114_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.4pr1](https://www.mbsplugins.de/archive/2021-08-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th July 2021 , last changed 4th August 2021

  
[Container.RenameStream](ContainerRenameStream.md) - [Container.Serialize](ContainerSerialize.md)

[HTML Version](ContainerScreenshot.shtml)