QuickStart: Excel for WPF / Step 1 of 4: Setting up the Project
Step 1 of 4: Setting up the Project

In this step you will add a reference to the C1.WPF.Excel.dll to your form.

  1. Create a new WPF project.
  2. Select the Add Reference option from the Project menu of your project. The Add Reference dialog box appears.
  3. Browse to locate and select the C1.WPF.Excel.dll and click OK.
  4. Double-click the form to add the Form1_Load event and switch to code view. Add the Imports (Visual Basic) or using (C#) statement to the code at the top of the form so you can use all names within the C1.WPF.Excel namespace.
    Visual Basic
    Copy Code
    Imports C1.WPF.C1Excel
    

     

    C#
    Copy Code
    using C1.WPF.Excel;
    

Now you can create and begin adding content to a C1XLBook.