New to Telerik Document ProcessingStart a free 30-day trial

Doc

Updated on Feb 19, 2026

DOC is the default target Binary file format developed by Microsoft for representing documents in Word 97 - 2003.

Dot

DOT is the Binary file format developed by Microsoft for representing templates in Word 97 - 2003.

Using DocFormatProvider

DocFormatProvider makes it easy to import a DOC or DOT file into a RadFlowDocument, preserving the entire document structure and formatting.

To use DocFormatProvider, you should add references to the packages listed below:

  • Telerik.Windows.Documents.Core
  • Telerik.Windows.Documents.Flow
  • Telerik.Windows.Documents.Flow.FormatProviders.Doc
  • Telerik.Windows.Zip

Import

To import a DOC or DOT file, you should use the Import() method of DocFormatProvider.

Example 1: Import document from a file

c#
Telerik.Windows.Documents.Flow.Model.RadFlowDocument document;

Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider();

using (Stream input = File.OpenRead("Sample.doc"))
{
    document = provider.Import(input, TimeSpan.FromSeconds(10));
}

And here is how you can import a document from a byte array containing the document:

Example 2: Import document from a byte array

c#
byte[] input = File.ReadAllBytes("Sample.doc");
Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Doc.DocFormatProvider();

Telerik.Windows.Documents.Flow.Model.RadFlowDocument document = provider.Import(input, TimeSpan.FromSeconds(10));

The resulting RadFlowDocument can be manipulated like any code-generated document.

See Also

In this article
ImportSee Also
Not finding the help you need?
Contact Support