ExcelImage
16 Dec 20251 minute to read
Represents the configuration for embedding an image into an Excel cell during Excel export.
This interface allows you to specify the image source, dimensions, and placement coordinates
within the Excel sheet. The image is inserted using a base64-encoded string and can span
across multiple rows and columns based on the defined layout.
Properties
column number
Defines the starting column index in the Excel sheet where the image will be placed.
This indicates the left boundary of the image.
height number
Specifies the height of the image in Excel cell.
This determines how tall the image will appear in the exported Excel sheet.
image string
A base64-encoded string representing the image to be embedded in the Excel worksheet.
The string must contain only the raw base64 data, without any MIME type prefix (e.g., no data:image/png;base64,).
lastColumn number
Defines the ending column index that the image should span to horizontally.
This allows the image to cover multiple columns if needed.
lastRow number
Defines the ending row index that the image should span to vertically.
This allows the image to cover multiple rows if needed.
row number
Defines the starting row index in the Excel sheet where the image will be placed.
This indicates the top boundary of the image.
width number
Specifies the width of the image in Excel cell.
This determines how wide the image will appear in the exported Excel sheet.