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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

508 Accessiblity Word Reports

Thread ID:

Created:

Updated:

Platform:

Replies:

146903 Aug 25,2019 12:42 AM UTC Aug 26,2019 07:47 AM UTC ASP.NET MVC - EJ 2 1
loading
Tags: DocIO
Robin Knight
Asked On August 25, 2019 12:42 AM UTC

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

Poorani Rajendran [Syncfusion]
Replied On 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
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon