How to Convert the Local Spreadsheet Range to a CSV file: Step-by-Step Guide
Contents
[
Hide
]
Export data of range from a local Excel Files to a CSV file using Cloud API.
Convert Range to CSV API
API Endpoint
PUT http://api.aspose.cloud/v4.0/cells/convert/range/csv
Request Parameters:
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
|---|---|---|---|
| Spreadsheet | File | FormData | Upload the spreadsheet file. |
| worksheet | String | Query | The worksheet name of Spreadsheet/Excel |
| range | String | Query | Specify the cell area (e.g., A1:C10). |
| outPath | String | Query | (Optional) The folder path where the workbook will be stored. Default is null. |
| outStorageName | String | Query | Name of the output file storage. |
| fontsLocation | String | Query | Specify custom fonts if required. |
| region | String | Query | Defines the spreadsheet region setting. |
| password | String | Query | Password required to open the spreadsheet file. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream",
}
}
]
Error Codes
- 400 Bad Request: Invalid Aspose.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.
Where should you use the Convert Range to CSV API?
1. Data Export & Migration Scenarios
- Database Integration: Export specific Excel ranges directly to database systems
- Application Integration: Feed selected spreadsheet data into SaaS applications
- System Migration: Transfer specific data ranges between legacy and modern systems
- Cross-Platform Sharing: Share focused data subsets across different platforms
2. Reporting & Analytics
- Targeted Reporting: Export specific report sections to CSV for focused analysis
- Dashboard Data Feeds: Supply specific data ranges to BI dashboard tools
- Performance Metrics: Extract KPI ranges for performance tracking systems
- Financial Reporting: Export financial statement sections for external auditing
3. Development & Testing
- Test Data Management: Export specific data ranges for testing purposes
- Development Environments: Share sample data ranges with development teams
- API Testing: Generate CSV test data from specific spreadsheet sections
- Prototype Development: Provide focused data sets for application prototypes
4. Business Operations
- Selective Data Sharing: Share specific data ranges with external partners
- Partial Data Backup: Backup critical data ranges in CSV format
- Departmental Data Transfer: Share specific data between departments
- Compliance Reporting: Export regulatory data ranges for compliance submissions
5. Automation Workflows
- Scheduled Range Exports: Automatically export specific ranges on schedule
- Trigger-Based Extraction: Export ranges based on business events or triggers
- Workflow Integration: Integrate range exports into business process workflows
- Batch Range Processing: Process multiple specific ranges in batch operations
Why should you use the Convert Range to CSV API?
- You can convert spreadsheet data of range without first uploading the workbook, which saves storage space and reduces costs.
- Development can be quickly completed through the existing Aspose.Cells Cloud SDKs.
- Simple Integration: REST API with clear documentation.
- Scalable Architecture: Handles from small to enterprise-scale operations.
How to Use the Convert Range to CSV API with SDKs?
OpenAPI Specification
The OpenAPI Specification outlines a publicly accessible API, 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 convert a data of range to a CSV file with short code. Explore the complete list of Aspose.Cells Cloud SDKs in our GitHub repository.
The following code examples illustrate how to call Aspose.Cells web services using various SDKs: