Hello Guys,
Again - buggin with the "twisted" problem :)
Recently I have been building automatic load function, that would load specific files into SharePoint, but bumped into issue:
Each time the person download the file from sharepoint that file has additional properties called "Document Properties - Server". And there is a property called "Date" and property called "Title". When I load the files back into SharePoint I am setting my Custom "Date" property using this:
dynamic properties;
properties = WorkbookObject.CustomDocumentProperties;
properties.Add("Date",
false,
Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeDate,
DateTime.Now, Type.Missing);
So now I am having 2 properties with name "Date".
Does anyone know how to get rid of the "server" type properties from MS Office file?
I know that manually you can do by clicking on MS Office inco in the top-left corner --> Prepare --> Inspect Document --> Check the tick on "Document Properties and Personal Information" --> [button] Inspect --> [button] Remove All....
But I don't want the user to it all the time... how to do it programatically?
Thanks a lot guys!
Modestas