Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents

I have a simple event handler with an ItemAdding event that changes the column value that I need in the ItemUpdated method. After loading a Word 2007 document (* .docx, * .pptx or xlsx), the column value changes, but when I protect the document, the column value disappears in the ItemUpdated method. This only happens for Office 2007 documents; other files do not clear the value.

An event handler runs in the document library in MOSS 2007.

thank

+3
source share
4 answers

. , office 2007, /. , , .

, .

, Microsoft . , .

( , ), .

UPDATE:

SPWeb.ParserEnabled, FALSE , . .

+4

Office SharePoint, .

, , - . , , .

. .

0

, SPWeb.ParserEnabled = false ItemUpdating.

:

properties.ListItem.Web.ParserEnabled = false;

0

Setting SPWeb.ParserEnabled = false works, but there are effects! One of the most notable is that it breaks down website and list templates. If SPWeb.ParserEnabled = false, and you save the list or site template, metadata is not set (function identifier, product version, etc.), and it will not be available in the list of templates to choose from. You may be able to get around this by dropping SPWeb.ParserEnabled = true during the itemUpdated event, but I have not fully tested if this still solves all the problems ...

0
source

Source: https://habr.com/ru/post/1698307/


All Articles