5
votes
1answer
642 views

How can I tell if a document is 'being published'?

I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
1
vote
1answer
207 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
0
votes
2answers
943 views

getting my Document's parent sharepoint Folder

I have a sharepoint document library containing documents and folders (the folders are newly introduced as a new content type derived from folder) and I'm having an event reciever on document added ...
0
votes
3answers
1k views

ItemAdding getting the file name of a document

I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
1
vote
1answer
467 views

“Cannot add file”-error when working with document library programmatically

I have two libraries, one with forms(xml) and one with a custom document content type. I have an event receiver ItemUpdated on the form library, which interprets the added/modified form, and creates ...
1
vote
1answer
1k views

“View Document” Event for Document Library?

I'm trying to capture the View document "event" of when a user clicks on a document in a document library and it opens up the document in Word or Excel... There is not such an event receiver and ...