Syncfusion Essential XlsIO is a used to create, read, and edit Excel documents. Also, converts Excel documents to PDF files. Using this library, you can start importing or exporting data between worksheet and DataTable in C# and VB.NET.
DataTable is a memory representation of database with collection of rows and columns. Data in an existing worksheet can also be exported to data tables and CLR objects.
Essential XlsIO supports exporting DataTable to Excel worksheet using ImportDataTable. To achieve this, first you need to load data into DataTable instance and the loaded table can be exported to Excel worksheet.
ImportDataTable feature will export DataTable to Excel with formatting. For example, if the string type contains ‘%’,’$’,’Date’, etc., gets exported with respective formatting applied on the cell.
Steps to export DataTable to Excel with formatting, programmatically:
By executing the program, you will get the DataTable as follows.
Know more about Essential XlsIO through the , where you can find supported features like and in DataTable, appending multiple records to worksheet using , exporting worksheet into etc., with respective code examples.
Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Refer to link to learn about generating and registering Syncfusion license key in your application to use the components without trail message.
This page will automatically be redirected to the sign-in page in 10 seconds.