# Getting Started

The `RadSpreadProcessing` library enables you to create, import, and export spreadsheet documents programmatically.

> note If you still do not have **Telerik Document Processing** installed, check the **[First Steps](https://www.telerik.com/document-processing-libraries/documentation/getting-started/first-steps)** topic to learn how you can obtain the packages through the different suites.

## Package References

You can find the required references in the [SpreadProcessing NuGet packages](https://www.telerik.com/document-processing-libraries/documentation/getting-started/installation/nuget-packages#spreadprocessing-packages) section.

## Creating a Workbook

The document model allows you to instantiate a new [workbook](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/working-with-workbooks/working-with-workbooks-what-is-workbook) and populate it with any data you want.

The following example creates a workbook and adds a worksheet to it.

### **Example 1: Create a Workbook and Add a Worksheet**

```C#
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets.Add();
```

You can then create a [CellSelection](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/working-with-cells/get-set-clear-properties) and set a value for the selected cells. The following example creates a cell and assigns a string value to it.

### **Example 2: Create a Cell and Set a String Value**

```C#
CellSelection selection = worksheet.Cells[1, 1]; //B2 cell
selection.SetValue("Hello RadSpreadProcessing");
```

## Exporting

The `RadSpreadProcessing` library supports a variety of formats to which you can export the contents of a workbook using [FormatProviders](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/formats-and-conversion/general-information). The following example exports the previously created workbook to `.xlsx` format.

For more examples and application scenarios of importing and exporting a Workbook to various formats, check the [Import/Load and Export/Save RadSpreadProcessing Workbook](https://www.telerik.com/document-processing-libraries/documentation/knowledge-base/import-export-save-load-workbook) knowledge base article.

### **Example 3: Export a Workbook to XLSX**

```C#
string fileName = "SampleFile.xlsx";

XlsxFormatProvider formatProvider = new XlsxFormatProvider();

using (Stream output = new FileStream(fileName, FileMode.Create))
{
	formatProvider.Export(workbook, output, TimeSpan.FromSeconds(10));
}
```

> note For more information about the import and export features of **RadSpreadProcessing**, see the [Formats and Conversion section](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/formats-and-conversion/general-information).

For more complete examples, go to the [Developer Focused Examples](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/sdk-examples) section of the library.

## Using RadSpreadsheet

`RadSpreadsheet` is a UI control part of the Telerik UI for WPF suite. The document model explained in this section of the documentation and all its features are shared between the `RadSpreadProcessing` library and `RadSpreadsheet`. [This help section](https://docs.telerik.com/devtools/wpf/controls/radspreadsheet/overview.html) contains information about all UI-specific features of `RadSpreadsheet`.

## See Also

* [Using Telerik Document Processing First Steps](https://www.telerik.com/document-processing-libraries/documentation/getting-started/first-steps)
* [What is a Workbook?](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/working-with-workbooks/working-with-workbooks-what-is-workbook)
* [What is a Worksheet?](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/working-with-worksheets/what-is-worksheet)
* [Get, Set and Clear Cell Properties](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/working-with-cells/get-set-clear-properties)
* [Using XlsxFormatProvider](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/formats-and-conversion/import-and-export-to-excel-file-formats/xlsx/xlsxformatprovider)
* [Formats and Conversion section](https://www.telerik.com/document-processing-libraries/documentation/libraries/radspreadprocessing/formats-and-conversion/general-information)
* [Import/Load and Export/Save RadSpreadProcessing Workbook KB](https://www.telerik.com/document-processing-libraries/documentation/knowledge-base/import-export-save-load-workbook)
* [Getting Started with RadSpreadProcessing Volume 1](https://www.telerik.com/blogs/getting-started-with-radspreadprocessing-volume-1)
* [Getting started with RadSpreadProcessing Vol2](https://www.telerik.com/blogs/getting-started-with-radspreadprocessing-vol2)
* [Getting Started with RadSpreadProcessing Vol3](https://www.telerik.com/blogs/getting-started-with-radspreadprocessing-vol3)
* [SpreadProcessing Document Generation Demo](https://demos.telerik.com/document-processing/spreadprocessing/generate_documents)
