DynaPDF.Table.SetCellImageEx
----------------------------

Inserts an image from container.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Table.SetCellImageEx"; Table; Row; Col; ForeGround; HAlign; VAlign; Width; Height; Image { ; Index } ) 

**MBS**( **"DynaPDF.Table.SetCellImageEx";** /\* Inserts an image from container. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$Row**; /\* The row number. Range from 0 to [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)-1. Pass -1 for all rows.e.g. 0 \*/   
**$Col**; /\* The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. Pass -1 for all columns.e.g. 0 \*/   
**$ForeGround**; /\* If 1, the cell will be expanded if necessary.e.g. 1 \*/   
**$HAlign**; /\* The horizontal alignment. Can be left, center or right.e.g. "center" \*/   
**$VAlign**; /\* The vertical alignment. Can be bottom, center or top.e.g. "center" \*/   
**$Width**; /\* The image width. Must be greater or equal zero.e.g. 50 \*/   
**$Height**; /\* The image height. Must be greater or equal zero.e.g. 50 \*/   
**$Image**; /\* The container with the image.e.g. $Path \*/   
**$Index**) /\* Optional; The index of the image in the file.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Table | The identifier for the table. | $Table |  |
| Row | The row number. Range from 0 to [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)-1. Pass -1 for all rows. | 0 |  |
| Col | The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. Pass -1 for all columns. | 0 |  |
| ForeGround | If 1, the cell will be expanded if necessary. | 1 |  |
| HAlign | The horizontal alignment. Can be left, center or right. | "center" |  |
| VAlign | The vertical alignment. Can be bottom, center or top. | "center" |  |
| Width | The image width. Must be greater or equal zero. | 50 |  |
| Height | The image height. Must be greater or equal zero. | 50 |  |
| Image | The container with the image. | $Path |  |
| Index | The index of the image in the file. | 1 | Optional |

### Result

Returns OK or error.

### Description

Inserts an image from container.  
Like [DynaPDF.Table.SetCellImage](DynaPDFTableSetCellImage.md), but with passing container for the image instead of a file path.  
  
### See also

- [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)
- [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)
- [DynaPDF.Table.SetCellAction](DynaPDFTableSetCellAction.md)
- [DynaPDF.Table.SetCellImage](DynaPDFTableSetCellImage.md)
- [DynaPDF.Table.SetCellPadding](DynaPDFTableSetCellPadding.md)
- [DynaPDF.Table.SetCellSpacing](DynaPDFTableSetCellSpacing.md)
- [DynaPDF.Table.SetCellStyledText](DynaPDFTableSetCellStyledText.md)
- [DynaPDF.Table.SetCellTable](DynaPDFTableSetCellTable.md)
- [DynaPDF.Table.SetCellTemplate](DynaPDFTableSetCellTemplate.md)
- [DynaPDF.Table.SetCellText](DynaPDFTableSetCellText.md)

### Release notes

- **Version 12.1**
    - Fixed problem with [DynaPDF.Table.SetCellImageEx](https://www.mbsplugins.eu/DynaPDFTableSetCellImageEx.shtml) not passing JPEG preview for WMF image on MacOS.

### Example Databases

- [DynaPDF/Catalog with tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Catalog%20with%20tables.shtml#1ScriptAnchor_)
- [DynaPDF/Report](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Report.shtml#1ScriptAnchor_)
- [DynaPDF/Tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Tables.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 12.1pr1](https://www.mbsplugins.de/archive/2022-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 2nd May 2022

  
[DynaPDF.Table.SetCellImage](DynaPDFTableSetCellImage.md) - [DynaPDF.Table.SetCellOrientation](DynaPDFTableSetCellOrientation.md)

[HTML Version](DynaPDFTableSetCellImageEx.shtml)