'How to read value from Excel MetaProperty
I want to read and write the value of an Excel MetaProperty. The propety can be found via the ID. But any access to the property value leads to an exception. Thanks for help.
Excel.Workbook workbook
Microsoft.Office.Core.MetaProperties metaProps = workbook.ContentTypeProperties;
foreach (Microsoft.Office.Core.MetaProperty propy in metaProps)
{
if (propy.Id == "Name")
{
var a = propy.Value;
}
}
Solution 1:[1]
Use the late-binding technology for accessing the property value. See Type.InvokeMember for more information.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eugene Astafiev |
