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.