Export a Spreadsheet Range data as a Format file.
Contents
[
Hide
]
Export a cloud spreadsheet/Excel range to a format file. The format file can be saved in the cloud or exported to the local storage.
Export Range as Format API
GET http://api.aspose.cloud/v4.0/cells/{name}/worksheets/{worksheet}/ranges/{range}
Request Parameters:
Parameter Name | Type | Path/Query String/HTTPBody | Description |
---|---|---|---|
name | String | Path | (Required) The name of the workbook file to be retrieved. |
worksheet | String | Path | The The worksheet name of Spreadsheet/Excel |
range | String | Path | The range to be converted (e.g., A1:C12). |
format | String | Query | (Required) The desired output format (e.g., “png”, “pdf”, “svg”). |
folder | String | Query | (Optional) The folder path where the workbook is stored. Defaults to null. |
storageName | String | Query | (Optional) The name of the storage if using custom cloud storage. Defaults to default storage if omitted. |
outPath | String | Query | (Optional) The folder path for the output file. Defaults to null. |
outStorageName | String | Query | The name of the output file storage. |
fontsLocation | String | Query | Custom fonts location. |
region | String | Query | The region setting of the spreadsheet. |
password | String | Query | The password required to open the spreadsheet file. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream"
}
}
]
Error Codes
- 400 Bad Request: Invalid Apose.Cells Cloud API URI.
- 401 Unauthorized: Invalid access token. Or invalid client id and secret.
- 404 Not Found: The spreadsheet file not accessible.
- 500 Server Error: The spreadsheet has encountered an anomaly in obtaining calculation data.
Why should you use the Export Spreadsheet Range as Format API?
- You can convert cloud files to different formats anytime and anywhere.
- Development can be quickly completed through the existing SDK.
How to Use the Export Spreadsheet Range as Format API with SDKs?
Export Range as Format API Specification
The Export Range as Format API Specification provides a publicly accessible programming interface, enabling REST interactions directly from a web browser.
Use Aspose.Cells Cloud SDKs
Using the SDK is the fastest way to develop, as it abstracts away the low-level details, allowing you to export a spreadsheet range data to a format file with short code. 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: