DocFormatProvider
Imports legacy DOC (Word 97-2003) documents into RadFlowDocument instances; export is not supported.
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Doc
Assembly:Telerik.Windows.Documents.Flow.FormatProviders.Doc.dll
Syntax:
public class DocFormatProvider : BinaryFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, IBinaryFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>BinaryFormatProviderBase<RadFlowDocument>DocFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the DocFormatProvider class.
public DocFormatProvider()
Properties
Gets a value indicating whether this provider supports exporting documents (always false for DOC).
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether this provider supports importing documents (always true for DOC).
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets the file extensions supported by this provider (.doc, .dot).
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Imports the specified input.
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
The input stream containing the doc file.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: