Get OLE Object from Excel Worksheet – Aspose.Cells Cloud API
Contents
[
Hide
]
This REST API retrieves an OLE object from an Excel worksheet.
Rest API
GET https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/oleobjects/{objectNumber}?format={format}
Request Parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | Document name. |
| sheetName | string | path | Worksheet name. |
| objectNumber | integer | path | The object number within the worksheet. |
| format | string | query | Desired export format for the object (e.g., png, jpeg). |
| folder | string | query | Folder that contains the document. |
| storageName | string | query | Name of the storage to use. |
Storage Options
- folder – specifies the sub‑folder in the default storage where the workbook resides.
- storageName – overrides the default storage name if the workbook is stored elsewhere.
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to call the Aspose.Cells web service. The example below demonstrates how to request an OLE object as a PNG image.
Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | BadRequest | Missing or invalid parameters. |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 404 | NotFound | Workbook, worksheet, or OLE object not found. |
| 500 | ServerError | Unexpected server error. |
Cloud SDK Family
Using an SDK is the fastest way to integrate the API. SDKs handle low‑level details so you can focus on your business logic. See the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services with various SDKs: