How to Insert Picture in Cell with Golang via C++
Possible Usage Scenarios
The image adds a touch of brightness to your worksheet and provides a visual representation of the content. It also makes it easier for you to understand the data and come up with insights. Although you have been able to use images in Excel for many years, Excel has only recently enabled the feature of images becoming actual cell values. Even if the layout of the drawing is modified, it will still be attached to the data. You can use it in tables, sorting, filtering, including in formulas, and so on!
How to Insert Picture in Cell Using Excel
To insert a picture into a cell in Excel, follow these steps:
- Go to the Insert tab and click on the Pictures option.
- Select Place in Cell. Choose one of the following sources from the Insert Picture From dropdown menu (This Device, Stock Images, and Online Pictures). This Device inserts a picture from your device. Stock Images inserts a picture from the stock image collection. Online Pictures inserts a picture from the web.

- Select the picture and insert it into a cell.

How to Insert Picture over Cells Using Excel
To insert a picture over cells in Excel, follow these steps:
- Go to the Insert tab and click on the Pictures option.
- Select Place over Cells. Choose one of the following sources from the Insert Picture From dropdown menu (This Device, Stock Images, and Online Pictures). This Device inserts a picture from your device. Stock Images inserts a picture from the stock image collection. Online Pictures inserts a picture from the web.

- Select the picture and insert it over cells.

How to Switch from Picture in Cell to Picture over Cells Using Excel
You can easily switch from Picture in Cell to Picture over Cells. Please follow these steps:
- Right‑click on the cell and select Picture in Cell > Place over Cells.

- The result after switching is as follows:

How to Switch from Picture over Cells to Picture in Cell Using Excel
You can easily switch from Picture over Cells to Picture in Cell. Please follow these steps:
- Right‑click on the picture and select Place in Cell.

- The result after switching is as follows:

How to Insert Picture in Cell Using C++
Insert a picture in a cell using Aspose.Cells. Please see the following sample code. After executing the example code, a picture will be inserted into a cell.
- Instantiate a
Workbookobject. - Get the cell where you want to insert the picture.
- Set the
Cell.EmbeddedImageproperty. - Finally, save the workbook in the output XLSX format.