Performance issue with accessing Microsoft.Office.Core.DocumentPro

R

Raghvendra

Hi,

I have a Excel COM addin which reads the CustomDocumentProperties section of
a workbook.

This is how I access a particular entry from the CustomDocumentProperties
section

DocumentProperties docProperties = (DocumentProperties)
xlWorkbook.CustomDocumentProperties;

docProperty = docProperties[propName];

The problem is when the CustomDocumentProperties contain more than 8000
entries, the performance of this code is really bad. I have ran CPU profiler
and it showed that the following line takes more than a minute.

docProperty = docProperties[propName];
Does anyone know how to improve the performance of accessing
DocumentProperties?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top