New to Telerik Document ProcessingStart a free 30-day trial

Getting Started

Updated on Feb 25, 2026

This tutorial will take you through the creation of a sample application that uses RadWordsProcessing.

f you still don't have Telerik Document Processing installed, check the 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 WordsProcessing NuGet packages section.

Creating RadFlowDocument from Code

Here is how to create a RadFlowDocument and insert some text content with the help of RadFlowDocumentEditor.

Example 1: Create RadFlowDocument programmatically

c#
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor.InsertText("Hello world!");

You need to add using directive to the following namespaces:

  • Telerik.Windows.Documents.Flow.Model
  • Telerik.Windows.Documents.Flow.Model.Editing

Exporting RadFlowDocument to Docx

Exporting the document to Docx file can be achieved with the DocxFormatProvider. Here is how to create a provider instance and save a document with it:

Example 2: Export RadFlowDocument to Docx

c#
using (Stream output = new FileStream("output.docx", FileMode.OpenOrCreate))
{
    DocxFormatProvider provider = new DocxFormatProvider();
    provider.Export(document, output, TimeSpan.FromSeconds(10));
}

Detailed information about the supported formats and features can be found in the Formats and Conversion article. For more complete examples head to the Developer Focused Examples section of the library.

See Also