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
Post a Comment