Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Password Encrypted Excel Workbook deletes custom document properties on uploading to sharepoint

$
0
0

Hi

For some business logic, we save some flags in ".CustomDocumentProperties" of excel workbook.

Now our customer has a requirement in which he uploads a password encrypted workbook onto sharepoint as a repository. When he downloads , our business logic fails. On debugging I found that sharepoint deletes all the ".CustomDocumentProperties" of password encrypted excel workbook. Sharepoint replaces all the custom properties with this property

Final properties after downloading

<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" name="ContentTypeId"><vt:lpwstr>0x010100D9F7D8B106C146C7B8479CE4FF5EFE56006FA2C8F9C0812B478A7589E451D7AADB</vt:lpwstr></property></Properties>

Earlier properties before uploading:-

<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" name="FileList"><vt:lpwstr></vt:lpwstr></property><property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="3" name="IsAuthorTemplate"><vt:lpwstr>true</vt:lpwstr></property></Properties>

Please suggest some way out.



Viewing all articles
Browse latest Browse all 11571


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>