Sharepoint中的ItemUpdate与Office 2007文档之间的数据消失 [英] Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents
问题描述
事件处理程序在MOSS 2007中的文档库中运行。
谢谢
我们有同样的问题。看来,列表中的属性将添加到office 2007文档中,但仅包含上载/创建字段的默认值。一旦编辑了项目,我们遇到办公室文档值覆盖了我们的事件处理程序中设置的值。
当我们使用异步事件处理程序时,但异步事件处理程序与具有某些类型更新的其他线程的更新有冲突。
我们有一个支持调用与Microsoft有关的这个问题。他们承认这不是
没有结果。
尝试使用一个异步事件处理程序(它比从Office文档更新的代码运行一点点),但谨慎。
更新:
解决方法是设置 SPWeb.ParserEnabled 到FALSE将删除连接到文档属性将停止上述行为。它阻止将列表属性添加到office文档。
I have a simple event handler with a ItemAdding event that changes a column value that I need in the ItemUpdated method. After uploading a word 2007 document (*.docx, *.pptx or xlsx) the value of the column is changed, but when I protect the document the value of the column disappears in the ItemUpdated method. This only happens for office 2007 documents, other files don't clear the value.
The event handler runs in a document library in MOSS 2007.
Thanks
We have the same issue. It appears that the properties from the list are added to the office 2007 doc, but only with the default values for the field on upload/creation. Once the item is edited we are experiencing that the office documents values are overriding the values set in our event handler.
We do not experience this when using an asynchronous event handler, but the asynchronous event handler has conflicts with updates on other threads with certain types of updates.
We have a support call active with Microsoft about this very issue. They acknowledge this is not No results yet.
Try using an asychronous event handler (it runs a little bit later than the code that updates from the office document), but with caution.
UPDATE:
A workaround is setting the SPWeb.ParserEnabled to FALSE will remove the connection to the document properties which will stop the above behaviour. It prevents the list properties from being added to the office document.
这篇关于Sharepoint中的ItemUpdate与Office 2007文档之间的数据消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!