We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

508 Accessiblity Word Reports

Hello,
I am working on making the Word Reports using DocIO 508 compatible.

How do I add the following Document properties

Title
Subject
Author
Manager
Company
Category
KeyWords
Comments

Thanks

1 Reply

PR Poorani Rajendran Syncfusion Team August 26, 2019 07:47 AM UTC

Hi Robin,

Thank you for contacting Syncfusion support.

To meet your requirement, we suggest you use BuiltinDocumentProperties API to set the required built in document properties of the Word document. Please use the below highlighted code snippet in your sample application to set the document properties of the Word document.

Please use the below highlighted code snippet in your sample application:
 
//Loads an existing Word document template
WordDocument document = new WordDocument(“Input.docx”);
//Sets the title Built-in document properties
document.BuiltinDocumentProperties.Title = "This is the title of the Word document";
//Sets the subject Built-in document properties
document.BuiltinDocumentProperties.Subject = "Subject of the Word document";
//Sets the author Built-in document properties
document.BuiltinDocumentProperties.Author = "Robin";
//Sets the manager Built-in document properties
document.BuiltinDocumentProperties.Manager = "Robin Knight";
//Sets the company Built-in document properties
document.BuiltinDocumentProperties.Company = "Northwind traders";
//Sets the category Built-in document properties
document.BuiltinDocumentProperties.Category = "Sales reports";
//Sets the keyword Built-in document properties
document.BuiltinDocumentProperties.Keywords = "KeyWord";
//Sets the comments Built-in document properties
document.BuiltinDocumentProperties.Comments = "This is the Word document";
//Saves and closes the document instance
document.Save("Result.docx”);
document.Close();
 
Please refer the below UG documentation link to know more about working with document properties in Word document using DocIO:
https://help.syncfusion.com/file-formats/docio/working-with-word-document#built-in-document-properties

Please let us know if you have any other questions.

Regards,
Poorani Rajendran
 


Loader.
Live Chat Icon For mobile
Up arrow icon