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.

Tue Nov 29, 2016 11:07 am

Hi

I want to get CustomDocumentProperties on Excel workbook
(In Excel file => docProps/custom.xml)

I have try :
Code: Select all
workbook.DocumentProperties


But i get "nomal" document properties, not customs document properties.

I send you Excel file with CustomDocumentProperties.

Thanks
Attachments
t15899-583c3236e9866.rar
(14.69 KiB) Downloaded 312 times

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Wed Nov 30, 2016 3:32 am

Hi VincentB,

Thanks for your inquiry.
I'm afraid that there is no way to get CustomDocumentProperties on ecxel workbook now, yet our Dev team is considering adding the new feature. Once there is any update, we will inform you immediately.
Sorry for the inconvenience.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Nov 30, 2016 9:36 am

Ok good,

Do you have an estimate of the date of update (1week, 1month, 1year)?

Thanks for your reactivity.

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Thu Dec 01, 2016 1:23 am

Hello,

Sorry it's hard to estimate the update time, but we have attached a great importance to this issue and will inform you when figuring it out.

Thanks,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jan 06, 2017 7:17 am

Dear VincentB,

we are glad to inform you that the new feature of getting CustomDocumentProperties has been achieved. Please download the Spire.XLS Pack Hotfix Version:7.11.34 and apply the following code to have a try.
Code: Select all
Workbook workbook = new Workbook ();
 workbook.LoadFromFile(@"t15899-583c3236e9866.xlsx");
ICustomDocumentProperties properties = workbook.CustomDocumentProperties;
for (int i = 0; i < properties.Count;i++)
{
string name = properties[i].Name;
string value = properties[i].text;
}


Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jan 06, 2017 5:05 pm

Hi,

It's works perfectly,

Thanks.

VincentB
 
Posts: 120
Joined: Thu Sep 15, 2016 9:44 am

Return to Spire.XLS