# Getting Started with WPF Spreadsheet

This article explains how to add a **RadSpreadsheet** control to a page in your application.

## Adding Telerik Assemblies Using NuGet

To use **RadSpreadsheet** when working with NuGet packages, install the `Telerik.Windows.Controls.Spreadsheet.for.Wpf.Xaml` package. The [package name may vary](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/available-packages) slightly based on the Telerik dlls set - [Xaml or NoXaml](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml)

Read more about NuGet installation in the [Installing UI for WPF from NuGet Package](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/nuget-installation) article.

> tip With the 2025 Q1 release, the Telerik UI for WPF has a new licensing mechanism. You can learn more about it [here](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key).

## Adding Assembly References Manually

If you are not using NuGet packages, you can add a reference to the following assemblies:

* **Telerik.Licensing.Runtime**
* **Telerik.Windows.Controls.dll**
* **Telerik.Windows.Controls.GridView\.dll**
* **Telerik.Windows.Controls.Input.dll**
* **Telerik.Windows.Controls.Navigation.dll**
* **Telerik.Windows.Controls.Spreadsheet.dll**
* **Telerik.Windows.Data.dll**
* **Telerik.Windows.Documents.Core.dll**
* **Telerik.Windows.Documents.Spreadsheet.dll**

For export and import to **XLSX**:

* **Telerik.Windows.Zip.dll**
* **Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll**

To export a document to **PDF**, you will need to add a reference to the corresponding assembly:

* **Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.dll**

Note that in order to import/export in XLSX or export to PDF, the format provider must be registered manually. More information on Import/Export can be found [here](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/import-export).

If you want to use the sample UI provided in our demos you should add this reference as well:

* **Telerik.Windows.Controls.RibbonView\.dll**
* **Telerik.Windows.Controls.SpreadsheetUI.dll**

## Namespaces

For a bare-bone Spreadsheet control, you only need a declaration of the telerik schema:

```XAML
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
```

For the UI that enables the full-featured use of the control, you should also declare:

```XAML
xmlns:spreadsheetControls="clr-namespace:Telerik.Windows.Controls.Spreadsheet.Controls;assembly=Telerik.Windows.Controls.Spreadsheet"
	xmlns:spreadsheet="clr-namespace:Telerik.Windows.Controls.Spreadsheet;assembly=Telerik.Windows.Controls.Spreadsheet"
```

Then, all that is left is to add the **Spreadsheet** component to the page:

```XAML
<telerik:RadSpreadsheet x:Name="radSpreadsheet" />
```

## Model

> important **RadSpreadsheet** operates with a rich document model that is completely decoupled from UI. The documentation of the model can be found in the RadSpreadProcessing section of the documentation for Telerik Document Processing [here](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview).

The primary document that the model uses to manipulate and store data is called a **workbook**. Each **workbook** contains at least one **worksheet** that is defined as a collection of cells organized in rows and columns. A **worksheet** can also be viewed as a tabular working surface that you use to enter and organize your data. Typically, a single **workbook** holds together several **worksheets** that contain related information. For example, a workbook named *Annual Budget* can contain four worksheets that split the data for each quarter.

The following diagram illustrates how different parts of the document model fit together:

![Rad Spreadsheet Model 02](https://www.telerik.com/products/wpf/documentation/assets/af2d17b14b09929662d13dc5fa1b8ee4/radspreadsheet_model_02.png)

For more information about the concepts of Workbooks, Worksheets, Cells, and Rows and Columns, as well as the CRUD operations available on them, refer to the RadSpreadProcessing documentation linked above. For detailed information and examples on using the format providers, see the [Import/Export](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/import-export) article.

## Spreadsheet and RibbonView

**RadSpreadsheet** is easy to integrate with all kinds of UI thanks to the commanding mechanism that it employs. If you would like to use the control with a [RadRibbonView](https://www.telerik.com/products/wpf/documentation/controls/radribbonview/overview), which shows the full potential of the control, you can refer to the [Spreadsheet UI](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/spreadsheet-ui) topic that describes how you can take advantage of **RadSpreadsheetRibbon**.

## Open/Save Documents

To open a document, you need to import it and the export functionalities will help you to save one. To work with documents of the formats supported by **RadSpreadsheet**, you should use the format provider classes. For more information on the matter, please check the [Import/Export](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/import-export) topic.

## Telerik UI for WPF Learning Resources

* [Telerik UI for WPF Spreadsheet Component](https://www.telerik.com/products/wpf/spreadsheet.aspx)
* [Getting Started with Telerik UI for WPF Components](https://www.telerik.com/products/wpf/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WPF Installation](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/installation-guide)
* [Telerik UI for WPF and WinForms Integration](https://www.telerik.com/products/wpf/documentation/common-information/winforms-integration/overview)
* [Telerik UI for WPF Visual Studio Templates](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/visual-studio-templates)
* [Setting a Theme with Telerik UI for WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Telerik UI for WPF Virtual Classroom (Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/16/telerik-ui-for-wpf)
* [Telerik UI for WPF License Agreement](https://www.telerik.com/purchase/license-agreement/wpf-dlw-s)

## See Also

* [Import/Export](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/import-export)
* [Spreadsheet UI](https://www.telerik.com/products/wpf/documentation/controls/radspreadsheet/spreadsheet-ui)
* [SpreadProcessing](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview)
