0

I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded.

My problem occurs when someone opens a document with Word and uses the "save as" option in the Word menu to save a new document. My event receiver sets the correct value to my field and then Word is setting the field back to the old value again.

How can I prevent Word from changing my field ? The field is hidden, readonly and sealed.

I think I can catch the item updating event fired by Word. If there is a way to know that it is Word trying to change my item I could cancel the event. Is there a way?

Dudute
  • 357
  • 1
  • 3
  • 11
  • is it an out of the box field or a custom field ? – Steve B Sep 20 '12 at 08:11
  • It's a custom field defined in an elements.xml file and added by a site feature. It looks like this: – Dudute Sep 20 '12 at 08:34
  • I changed the readonly and sealed properties with SharePoint Manager to see if it would prevent the changes by Word. But it didn't. – Dudute Sep 20 '12 at 08:37

0 Answers0