Export DataSet to Excel file with formatting in C#.NET using EasyXLS Excel library! The DataSet can contain data from a SQL database, GridView, DataGridView, DataGrid or other.
http://www.easyxls.com/manual/tutorials/csharp/export-dataset-to-excel-with-formatting.html
Import Excel data to GridView in C# and VB.NET! The entire sheet data or only data from a range of cells can be imported.
http://www.easyxls.com/manual/FAQ/import-excel-to-gridview.html
EasyXLS is an Excel component that can be used to export Excel files programmatically. It also permits the export of large amount of data to Excel file.
EasyXLS is an optimal solution to:
The Excel component supports all MS Excel file formats: XLSX, XLS, XLSM, XLSB and XML Spreadsheet. The below links explains with source code samples how to export data to these file formats:
However, the recommended file format for large Excel files is the binary format like XLSB or XLS formats. Binary files are faster by default.
For a fast export and better memory management, some steps must be followed. Check the below link for more technical details:
How to export large Excel file?
The Excel component can be used from C#, VB.NET, C++.NET, PHP, ASP classic, C++, Java, VBS, VB6 or ColdFusion.
EasyXLS Excel library makes easier the export of Excel reports in XLSX file format.
The Excel reports can be formatted to have an attractive look, exactly in the preferred mode, or one of the predefined looks can be selected.
The Excel library works without Excel installed and without Interop and it is perfect to be used from server environments or desktop applications.
Data structures like GridView, DataGridView, DataGrid, DataTable, DataSet, JTable and ResultSet can be exported to XLSX file with one single line of code.
EasyXLS can be used from programming languages like C#, VB.NET, C++.NET, J#, Java, PHP, ASP classic, C++, VB6, VBS or ColdFusion.
EasyXLS allows not only the export of data and formatting, but also offers other Excel features like conditional formatting, data validation, comments, images and print options.
Moreover, the data can be exported as charts, pivot tables or pivot charts.
The data can be protected with password and the Excel file can be encrypted.
The export of XLSX file is fast, so it is the best solution for exporting large xlsx files.
Read more details on how to export data to xlsx file in C#, VB.NET, Java, C++, PHP.
Exporting GridView to Excel file is a common task for almost all ASP.NET applications that involves displaying reports of data to users. Usually the report from the screen must be exported to different file formats. The Excel file formats, like XLS, XLSX, XLSM and XLSB, are some of them.
EasyXLS Excel library lets you export the GridView in a very simple and fast way and it allows you to format the report according to requirements.
The library can be integrated in ASP.NET web applications and can be used from C#, VB.NET or C++.NET.
The exported Excel file can have multiple sheets and each of them can contain another GridView, if necessary, or additional data.
EasyXLS allows you to export the GridView and the Excel file will have a similar look like your screen report. The library offers all the formatting features for the Excel cells including background, foreground, borders and alignment options. The data from the Excel cells can be locked from unintentional editing events. Even more, the exported Excel file can be password secured when the file is opened or edited.
EasyXLS handles very well big volume of data and it works without Excel installed and without OLE Automation.
Check here some source code samples:
Export GridView to Excel in C#
Export GridView to Excel in VB.NET
It’s never been easier. EasyXLS Excel library provides methods for exporting the DataSet to Excel with one single line of code.
See more details and code samples about how to export DataSet to Excel in C# and VB.NET.
Export SQL data to Excel using C# or VB.NET
EasyXLS makes it easy to take out data from database and export data to Excel in XLS and XLSX file formats. The data can be arranged in nice formatted reports. The component allows you to export data from any database, including MS SQL Server or MySQL.
Export to Excel in ASP.NET from DataSet
EasyXLS component can be used from ASP.NET web applications. If the data is displayed in a GridView, see export GridView to Excel in ASP.NET.
Export data from DataSet to Excel in C# and VB.NET from windows application
EasyXLS component can also be used from WinForms and windows applications. If data is displayed in a DataGridView, see how to export DataGridView to Excel in C#.
Export DataSet to Excel Open XML
EasyXLS supports Open XML file format and allows the export of XLSX files. It also supports XLSM and XLSB files.
Export DataSet to Excel 2003
EasyXLS supports Excel 2003 file format and allows the export of XLS files. It also supports XML Spreadsheet, CSV, TXT and HTML files.
ALL WITHOUT MS Excel installed, WITHOUT Interop!
EasyXLS Excel library is your key!
The DataTable can be the result of a SQL query or the data source for a GridView, DataGridView and DataGrid.
Export SQL query to Excel file
The result of a SQL query can be instantly exported to Excel with one line of code using EasyXLS Excel library. See more details about how to export DataSet to Excel.
Export GridView to Excel file
If the data source of the GridView is a DataTable and the intention is to export simply the data contained by the DataTable, see more details about how to export DataTable to Excel. If you want to export also the GridView formatting to Excel, check how to export GridView to Excel.
Export DataGridView to Excel file
If the data source of the DataGridView is a DataTable and the intention is to export simply the data contained by the DataTable, see more details about how to export DataTable to Excel. If you want to export also the DataGridView formatting to Excel, check how to export DataGridView to Excel.
Export DataGrid to Excel file
If the data source of the DataGrid is a DataTable and the intention is to export simply the data contained by the DataTable, see more details about how to export DataTable to Excel. If you want to export also the DataGrid formatting to Excel, check how to export DataGrid to Excel.