Convert a Spreadsheet Range data to an Image
Contents
[
Hide
]
Convert a range data from a local spreadsheet/Excel file to an image file. Supported IMAGE FORMATS: PNG, SVG, TIFF, JPEG, BMP
Convert Range to Image API
PUT http://api.aspose.cloud/v4.0/cells/convert/range/image
Request Parameters:
Parameter Name | Type | Path/Query String/HTTPBody | Description |
---|---|---|---|
Spreadsheet | File | FormData | Upload the spreadsheet file for conversion. |
worksheet | String | Query | The worksheet name of Spreadsheet/Excel |
range | String | Query | Define the cell area to convert (e.g., A1:C10). |
format | String | Query | Specify the output file format (e.g., png, svg, tiff). |
printHeadings | Boolean | Query | Indicate if row and column headings should be printed. |
outPath | String | Query | (Optional) The folder path where the workbook is stored; default is null. |
outStorageName | String | Query | Name of the output file storage. |
fontsLocation | String | Query | Custom fonts to use for the conversion. |
regoin | String | Query | Define the spreadsheet region setting. |
password | String | Query | Password for opening the spreadsheet file if protected. |
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 Convert Range to Image API?
- No need for cloud storage, reducing the burden on cloud resources.
- Development can be quickly completed through the existing SDK.
How to Use the Convert Range to Image API with SDKs?
Convert Range to Image API Specification
The Convert Range to Image API Specification provides a publicly accessible programming interface, enabling REST interactions directly from your 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 convert a range data to an image with short code. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to call Aspose.Cells web services using various SDKs: