Autofit multiple rows on an Excel worksheet

This REST API autofits rows on an Excel worksheet.

REST API

POST http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/autofitrows

The request parameters are:

Parameter Name Type Location Description
name string path The name of the Excel file.
sheetName string path The name of the worksheet.
autoFitterOptions object body Options that control how rows are autofitted (e.g., ignore hidden rows).
startRow integer query The first row to autofit (1‑based index).
endRow integer query The last row to autofit (inclusive).
onlyAuto boolean query If true, only automatic row height is applied; otherwise, full autofit is performed.
folder string query The folder that contains the document.
storageName string query The name of the storage service.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out 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 call the Cloud API with cURL.

Cloud SDK Family

Using an SDK is the fastest way to develop. An SDK handles low‑level details so you can focus on your project. 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: