# File Operations

DsExcel provides procedures to handle file operations for a range of file types supported by it. Learn more in DsExcel docs.

## Content

DsExcel .NET allows users to export (save) data from a spreadsheet into several different file types (.xlsx, .xlsm, .xltx, .csv, .pdf, .json, and .sjs files) and import data (open) files from several different file types (.xlsx, .xlsm, .xltx, .csv, .json, and .sjs files) into DsExcel .NET. Using code, you can save the whole component, a particular sheet, or data from a particular range of cells to several different file types or streams.
Refer to the following procedures to handle file operations for a range of file types in DsExcel.NET:

* [Import and Export .xlsx Document](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportAndExportxlsxDocument)
* [Export to PDF](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ExporttoaPDFFile)
* [Export to a HTML File](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/export-to-html-file)
* [Import and Export CSV File](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportCSVFile)
* [Import CSV File with Custom Parser](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/import-csv-with-custom-parser)
* [Import and Export CSV File with Delimiters](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportCSVFileswithDelimiters)
* [Import and Export SpreadJS Files](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportSpreadJSFiles)
* [Import and Export Macros](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportMacros)
* [Import and Export Excel Templates](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportExcelTemplates)
* [Import and Export OLE Objects](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportOLEObjects)
* [Convert to Image](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/convert-to-image)
* [Import and Export Excel Options](/document-solutions/dot-net-excel-api/docs/online/ManageFileOperations/ImportandExportExcelOptions)

> !type=note
> **Note:** While exporting a worksheet to PDF, HTML or image file formats, you can set the **HorizontalAlignment** enumeration to **CenterContinuous** to center align the text across multiple cells. However, the horizontal alignment should be set before merging the cells. Otherwise, the cells may be drawn incorrectly in exported file formats.

> !type=note
> **Note:** DsExcel supports .xlsx, .sjs, and .ssjson file I/O operations, as well as PDF and image export of documents having timeline slicer and its data.