Import Data into Excel files and Export data from Excel files.
Aspose.Cells Cloud API supports importing data from a variety of sources and can export Excel workbooks, charts, and other objects to different formats, including XLSX, CSV, PDF, HTML, PNG, and more. This makes data management and sharing simple and efficient.
How to import data from various data sources
Importing data into an Excel file is a complex process. Many factors contribute to the complexity and therefore should be taken into account during the import process. The ability to import many formats and types of data with professional quality is a top feature of Aspose.Cells Cloud.
Import Data APIs Information
The following APIs are provided to import data into one or multiple Excel files:
| API | Description |
|---|---|
| POST /cells/import | Import data into Excel files without using storage. |
| POST /cells/{name}/importdata | Import data into an Excel file stored in the cloud. |
Request Parameters
Without using storage
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| file | file | formData | File to upload |
| ImportOption | ImportOptions | HTTP body | Specifies the import format (IntArray, DoubleArray, StringArray, TwoDimensionIntArray, TwoDimensionDoubleArray, TwoDimensionStringArray, BatchData, csvData, Picture) |
With using storage
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | path | Name of the Excel file |
| folder | string | query | Folder path in storage |
| storageName | string | query | Storage name |
| importData | ImportOptions | body | Import data payload |
Import data option parameters
The important parameters are described in the following tables:
How to export Excel objects to various file formats
If you originally created an Excel file in a format such as XLS, XLSX, XLSB, or CSV, you may want to convert it to another format to take advantage of specific features. For example, exporting to PDF protects the content from unauthorized modifications while making it easy to read and share.
Exporting Excel objects is a complex process, and many factors must be considered. Aspose.Cells Cloud provides high‑quality export of workbooks, charts, shapes, and pictures to a wide range of formats:
Export‑only formats: PDF, OTS, XPS, DIF, PNG, JPEG, BMP, SVG, TIFF, EMF, NUMBERS, FODS.
Both import and export: XLS, XLSX, XLSB, CSV, TSV, XLSM, ODS, TXT.
The request uses multipart content as defined in [RFC 2046] and [RFC 1341]. The first part contains the data file; the second part contains save options.
Export API Information
POST https://api.aspose.cloud/v3.0/cells/export
Request parameters
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| file | file | formData | File to upload |
| objectType | string | query | Object type (workbook, worksheet, chart, shape, picture, listobject, oleobject) |
| format | string | query | Desired output file format (see Supported File Formats) |
The OpenAPI Specification defines a publicly accessible programming interface that lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to call the API. The example below demonstrates a request and its JSON response.
How to call import and export APIs
The following articles explain each API in detail and contain cURL and SDK examples:
- How to import data into Excel files without using storage.
- How to import data into Excel files with using storage.
- How to import Batch Data into Excel Worksheet
- How to import CSV Data into Excel Worksheet
- How to import picture into Excel Worksheet
- How to import Integer Array into Excel Worksheet
- How to import Double Array into Excel Worksheet
- How to import String Array into Excel Worksheet
- How to import 2 Dimension Integer Array into Excel Worksheet
- How to import 2 Dimension Double Array into Excel Worksheet
- How to import 2 Dimension String Array into Excel Worksheet
- Export Excel chart to different file format
- Export Excel list‑object to different file format
- Export Excel ole‑object to different file format
- Export Excel picture to different file format
- Export Excel shape to different file format
- Export Excel workbook to different file format
- Export Excel worksheet to different file format