[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Office File API
  Demo Application
  Redistribution and Deployment
 [Expand]Spreadsheet Document API
 [Expand]Word Processing Document API
 [Expand]PDF Document API
 [Collapse]Excel Export Library
  [Expand]Overview
   Product Structure
   Getting Started
  [Expand]Examples
 [Expand]Snap Report API
 [Expand]Zip Compression and Archive API
 [Expand]Barcode Generation API
 [Expand]Unit Conversion API
 [Expand]API Reference
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Getting Started

Perform the steps below to get started with the Excel Export library.

  1. Start Visual Studio and create a new Console Application (NET Framework) project.

  2. In the Solution Explorer, right-click the References node and select Add Reference... in the context menu.

  3. In the invoked Reference Manager dialog, add references to the following libraries.

    • DevExpress.Data.v19.1.dll
    • DevExpress.Printing.v19.1.Core.dll
  4. Paste the code below in the Main method of the Program.cs file (Main procedure of the Module1.vb file for Visual Basic).

  5. Run the project.

The following image shows the XLSX file generated after the above-mentioned code is executed (the document is opened in Microsoft® Excel®).

Expanded See Also

Is this topic helpful?​​​​​​​