We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can you access the Final property of a Word document using Aspose.Words?

Is it possible to access the Final property of a Word document using Aspose.Words? I do not see any members of the Document object that look right for that. I need to be able to avoid processing documents that have that property set. It also might be useful to set it in certain circumstances, but that is less important.

Thanks for any info on this,

Michael Whalen

Never mind - should have done a little more experimenting. It appears that setting that property creates a Yes/No custom property called “_MarkAsFinal” set to Yes, and that’s all you need to mark a document as Final. I know how to handle that.

Hi Michael,

Thanks for your inquiry. It’s great you were able to find what you were looking for. Please let us know any time you have any further queries.

PS: Yes, you’re right; marking the document as final inserts a custom property ‘_MarkAsFinal’ in the Word document and on the basis of this property you can calculate Yes/No. You can use the following code snippet to output the names/values of custom properties:

Document doc = new Document(@"C:\Temp\MarkedAsFinal.docx");
foreach (DocumentProperty prop in doc.CustomDocumentProperties)
    Console.WriteLine("{0} : {1}", prop.Name, prop.Value);

Best regards,