Excel for WPF | ComponentOne
QuickStart: Excel for Silverlight / Step 1 of 4: Setting up the Project
In This Topic
    Step 1 of 4: Setting up the Project
    In This Topic

    In this step you will create a new project and add a reference to the C1.Silverlight.Excel assembly.

    1. Create a new Silverlight project.
    2. Select Project | Add Reference and browse to find C1.Silverlight.Excel.dll. Click OK.
    3. Add a standard button control to the page and set its Content property to Save.
    4. Double-click the button to switch to the code view of MainPage.xaml.cs. This will also add a button1_Click event to the code.
    5. 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.Silverlight.Excel namespace.
      Visual Basic
      Copy Code
      Imports C1.Silverlight.Excel
      

       

      C#
      Copy Code
      using C1.Silverlight.Excel;
      

       

    Now you can add some content to a C1XLBook.