Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Thu May 25, 2017 12:00 pm

Please help us how to add custom made properties in excel

HardikBhatt
 
Posts: 1
Joined: Thu May 25, 2017 11:57 am

Fri May 26, 2017 2:57 am

Dear HardikBhatt,

Thanks for your inquiry.
Sorry that Spire.XLS doesn't support adding custom properties at present. But we have added the new feature into our schedule. Once there is any progress, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jun 06, 2017 8:40 am

Dear HardikBhatt,

Thanks for waiting.
Now the new feature has been done, welcome to test Spire.XLS Pack Hotfix Version:7.12.27.
And sample code for your kind reference.
Code: Select all
            Workbook workbook = new Workbook();
            workbook.CustomDocumentProperties.Add("_MarkAsFinal", true);
            workbook.CustomDocumentProperties.Add("The Editor", "E-iceblue");
            workbook.CustomDocumentProperties.Add("Phone number1", 81705109);
            workbook.CustomDocumentProperties.Add("Revision number", 7.12);
            workbook.CustomDocumentProperties.Add("Revision date", DateTime.Now);
            workbook.SaveToFile("10676.xlsx", FileFormat.Version2010);

Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS