Set page setup for a worksheet – Aspose.Cells Cloud API Guide

Prerequisites: To call this API you must have a valid JWT (OAuth) token and the workbook must reside in an Aspose Cloud storage location where you have read/write permissions. Ensure the token is included in the Authorization header and that your account has the necessary API quota.

This REST API sets the page setup for an Excel worksheet.

REST API

POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/pagesetup

Request parameters

Parameter Name Type Location Description
name string path Document name.
sheetName string path The worksheet name.
pageSetup object body Page‑setup description.
folder string query Document folder.
storageName string query Storage name.

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.

Possible response status codes

Code Meaning When
200 OK Successful page‑setup update
400 Bad Request Invalid JSON payload or missing required fields
401 Unauthorized Missing or invalid JWT token
404 Not Found Workbook or worksheet name does not exist
500 Internal Server Error Unexpected server failure

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK handles low‑level details and lets you 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: