DocumentOriginalLoadFormat Property
Gets the format of the original document that was loaded into this object.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
public LoadFormat OriginalLoadFormat { get; }

Property Value

Type: LoadFormat

If you created a new blank document, returns the Doc value.

Shows how to retrieve the details of the path, filename and LoadFormat of a document from when the document was first loaded into memory.
Document doc = new Document(MyDir + "Document.doc");

// This property will return the full path and file name where the document was loaded from.
String originalFilePath = doc.OriginalFileName;
// Let's get just the file name from the full path.
String originalFileName = Path.GetFileName(originalFilePath);

// This is the original LoadFormat of the document.
LoadFormat loadFormat = doc.OriginalLoadFormat;
See Also