Back to Devexpress

Get Started with the Excel Export Library - Generate an Excel File

officefileapi-114032-excel-export-library-getting-started.md

latest2.4 KB
Original Source

Get Started with the Excel Export Library - Generate an Excel File

  • May 07, 2025
  • 11 minutes to read

This article describes how to get started with Excel Export Library for .NET Framework and .NET.

Create a .NET Application

  1. Start Visual Studio and create a new Console Application project.

  2. Install the DevExpress.Document.Processor or DevExpress.Printing.Core NuGet package.

  3. Paste the code below in the Main method of the Program.cs file ( Main procedure of the Module1.vb file for Visual Basic).

  4. 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®).

Create a .NET Framework Application

  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:

  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®).

More Examples on GitHub