# Printing

**RadRichTextEditor** allows printing the **RadDocument** instance shown in it. The following article describes the available printing modes, as well as how to use the respective for the feature API.

In order to take advantage of the printing functionality, the document you want to be printed has to be shown in a **RadRichTextEditor**. In cases when you do not wish to actually show the editor to the user you can set the height of the control to *0*.

## Using UI

![WinForms RadRichTextEditor Printing Option](https://www.telerik.com/products/winforms/documentation/assets/688dcf422f5e7bf12445fd3fb70c93d9/richtexteditor-printing001.png)

**RadRichTextEditor**'s predefined UI – [RibbonUI](https://www.telerik.com/products/winforms/documentation/controls/richtexteditor/ui-for-applying-rich-text-formatting/ribbon-ui), allows you to directly *Print* by pressing the backstage item of the ribbon.

## Printing programmatically

Additionally to using the UI, you can print by taking advantage of the **Print()**,  **Print(bool showPrinterSettings)** and **Print(bool showPrinterSettings, RadPrintDocument document)** methods of  **RadRichTextEditor**. In addition **RadRichTextEditor** also provides a **PrintPreview()** and **PrintPreview(RadPrintDocument document)** methods.

```C#
this.radRichTextEditor1.Print();
//or
this.radRichTextEditor1.PrintPreview();
```

```VB.NET
Me.radRichTextEditor1.Print()
'or
Me.radRichTextEditor1.PrintPreview()
```

If you want to specify any print setting you can create an instance of [RadPrintDocument](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/printing-support/radprintdocument/overview) and pass it to the respective method override.

## See Also

* [Print Silently Documents in RadRichTextEditor ](https://www.telerik.com/products/winforms/documentation/knowledge-base/silent-documents-printing-in-richtexteditor)
