add_attachment method
add_attachment
Adds an attachment to the SpreadsheetWorksheet.
def add_attachment(self, file_content, source_full_name, preview_image_content, x, y, width, height):
...
| Parameter | Type | Description |
|---|---|---|
| file_content | bytes | The content of the file to be attached. |
| source_full_name | str | The full name of the attached file (The extension is used to
determine appropriate application to open the file). |
| preview_image_content | bytes | The attached file preview image as a byte array. |
| x | float | The x-coordinate of the attachment frame (in points). |
| y | float | The y-coordinate of the attachment frame (in points). |
| width | float | The width of the attachment frame in points. |
| height | float | The height of the attachment frame in points. |