sharepoint - SPFile "Content Type ID" is default even after changing programmatically when excel has macros -


below code used update content type of spfile.

newfile.item["content type id"] = spweb.contenttypes["subject attachment"].id; newfile.item.update();

but "content type id" attachment file assigned default value when excel file has macro.

how change code such not take default "content type id" when excel file has macro.

note: behavior observed when attachment file has macro.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -