Note that changes in this property change CachePdfKey.
public DocumentFormat Format { get; set; }
Public Property Format As DocumentFormat
Get
Set
Specify/override the document format:
documentViewer.Document = @"c:\SomeFolder\Document";
//Specify format for extensionless file "Document"
documentViewer.DocumentOptions.Format = DocumentFormat.Docx;
documentViewer.Document = @"c:\SomeFolder\Document.xml";
//Force "Document.xml" to be treated as DocumentFormat.Txt
documentViewer.DocumentOptions.Format = DocumentFormat.Txt;
documentViewer.Document = "c:\SomeFolder\Document"
'Specify format for extensionless file "Document"
documentViewer.DocumentOptions.Format = DocumentFormat.Docx
documentViewer.Document = "c:\SomeFolder\Document.xml"
'Force "Document.xml" to be treated as DocumentFormat.Txt
documentViewer.DocumentOptions.Format = DocumentFormat.Txt