Aspose.Cells Cloud – Convert Table to HTML
Quick summary – This endpoint reads a local Excel workbook, extracts the specified table, converts it to an HTML file, and returns the result as a downloadable stream. No intermediate upload to Aspose Cloud storage is required.
ConvertTableToHTML API
PUT https://api.aspose.cloud/v4.0/cells/convert/table/html
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| Spreadsheet | Form‑Data | File |
Yes | The Excel workbook containing the table to convert. |
| worksheet | Query | String |
Yes | Name of the worksheet that holds the table. |
| tableName | Query | String |
Yes | Exact name of the table to be converted. |
| outPath | Query | String |
No | Folder path in Aspose Cloud storage where the HTML file will be saved (optional). |
| outStorageName | Query | String |
No | Storage name for the output file (optional). |
| fontsLocation | Query | String |
No | Path to a folder containing custom fonts required for the conversion. |
| region | Query | String |
No | Locale identifier (e.g., en-US, fr-FR). Affects number/date formatting. |
| password | Query | String |
No | Password to open a protected workbook. |
| AutoRowsFit | Query | Boolean |
No | Auto‑fit all rows in the worksheet (true/false). |
| AutoColumnsFit | Query | Boolean |
No | Auto‑fit all columns in the worksheet (true/false). |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream"
}
}
]
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
When to Use the Convert Table to HTML API?
- Dynamic web content – Embed pricing tables, schedules, or product lists directly into web pages or CMSes.
- Email templates – Generate HTML snippets for order summaries or reports that render consistently across email clients.
- Dashboards & reporting tools – Show live spreadsheet data without loading the full workbook or using heavy grid components.
- Document previews – Provide quick, format‑preserving previews of specific spreadsheet sections.
How to Use the Convert Table to HTML API with SDKs?
Convert Table to HTML API Specification
The Convert Table to HTML API Specification provides a publicly accessible programming interface, allowing REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.
Use Aspose.Cells Cloud SDKs
Using the SDK is the fastest way to develop, as it abstracts away low‑level details, allowing you to convert spreadsheet table data to a CSV file with minimal code. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to make calls to Aspose.Cells web services using various SDKs: