Question

We were successfully working with office files using DSOFile.dll to add custom properties into the files. After entering into the Office 2013, DSO stops working. We tried creating POCs in the same environment as follows and that too not working. Below is the code snippet for adding custom properties.

            OleDocumentPropertiesClass doc = new OleDocumentPropertiesClass();
            doc.Open(fileName, false, dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);
            object val = "joy";
            doc.CustomProperties.Add("joyskeyclass", ref val);
            doc.Save();

We can read the custom properties added to office 2013 files using DSOFile.dll. But its not listed when we open in the office apps like excel and navigate to custom properties dialog. Also if we add custom properties via MS word custom dialog properties its not listed down during iteration in DSO objects.

Was it helpful?

Solution

I get this worked after installing latest office 2013 patches.

Especially the MsoShExt.dll came via

http://support.microsoft.com/kb/2760502

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top