Sharepoint中的ItemUpdate与Office 2007文档之间的数据消失 [英] Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents

查看:231
本文介绍了Sharepoint中的ItemUpdate与Office 2007文档之间的数据消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的事件处理程序,一个ItemAdding事件,它改变了我在ItemUpdated方法中需要的列值。在上传Word 2007文档(* .docx,* .pptx或xlsx)之后,列的值被更改,但是当我保护文档时,该列的值在ItemUpdated方法中消失。这仅适用于Office 2007文档,其他文​​件不会清除该值。



事件处理程序在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆