Autofit multiple columns on an Excel worksheet

This REST API autofits multiple columns on an Excel worksheet.

REST API

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

The request parameters are:

Parameter Name Type Location Description
name string path The file name.
sheetName string path The worksheet name.
firstColumn integer query The start column index.
lastColumn integer query The end column index.
autoFitterOptions* object body AutoFitter options (see Auto Fitter Options).
firstRow integer query The start row index for autofit (optional).
lastRow integer query The end row index for autofit (optional).
folder string query Folder path in storage (optional).
storageName string query Storage name (optional).

*The parameter name is displayed as a link to the related documentation.

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 make calls to the Cloud API with cURL.

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Cells web services using various SDKs: