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

How to modify "Comment" and other properties of an Excel file?


I would like to modify these properties of an excel file using XlsIO. I could not find a way to achieve that in the online documentation. Kindly help.

Thanks and regards,

3 Replies

AV Abirami Varadharajan Syncfusion Team May 19, 2017 09:36 AM UTC

Hi Swetaketu, 
Thank you for contacting Syncfusion support. 
We request you to modify the required properties by accessing BuiltInDocumentProperties. Kindly refer below code to achieve the same. 
Code Example:  
            IBuiltInDocumentProperties documentproperty = workbook.BuiltInDocumentProperties; 
            documentproperty.Title = "Title Modifed"; 
            documentproperty.Subject = "Subject Modified"; 
            documentproperty.Comments = "Comments Added"; 
            documentproperty.Keywords = "Tags Modified"; 
            documentproperty.Category = "Category Added"; 
We have also shared sample for your reference and the sample can be downloaded from the following link. 
Kindly refer and let us know that your requirement is fulfilled. 

SM Swetaketu Majumder May 19, 2017 09:30 PM UTC

Hi Abirami,

Thank you. I was able to modify the properties.


AV Abirami Varadharajan Syncfusion Team May 22, 2017 04:48 AM UTC

Hi Swetaketu, 
Thank you for updating us.  
We are glad that your requirement is fulfilled. Please let us know if you need any further assistance. 

Live Chat Icon For mobile
Up arrow icon