Get MaxColumn from Excel Worksheet
Contents
[
Hide
]
This REST API returns the maximum column index in an Excel worksheet when the cellOrMethodName parameter is set to maxcolumn.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cellOrMethodName |
string | Yes | — | Must be set to maxcolumn to invoke this method. |
folder |
string | No | "" |
Folder path in cloud storage where the workbook resides. |
storage |
string | No | "" |
Name of the storage service (if multiple are configured). |
fileName |
string | Yes | — | Name of the Excel file (e.g., myWorkbook.xlsx). |
sheetName |
string | Yes | — | Name of the worksheet (e.g., Sheet1). |
- cURL Example
- Error Handling
| HTTP Status | Meaning | Sample Error Body |
|---|---|---|
| 200 | Success – returns the MaxColumn value. |
{ "MaxColumn": 15 } |
| 400 | Bad request – missing or invalid parameters. | { "Code": "BadRequest", "Message": "ParametercellOrMethodNameis required." } |
| 401 | Unauthorized – invalid or missing token. | { "Code": "Unauthorized", "Message": "Access token is invalid or expired." } |
| 404 | Not found – workbook or worksheet does not exist. | { "Code": "NotFound", "Message": "WorksheetSheet1not found." } |
| 500 | Server error – unexpected condition. | { "Code": "InternalError", "Message": "An unexpected error occurred." } |
- Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK handles low‑level details, allowing you to focus on your project logic. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: