2
votes
1answer
25 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
0
votes
1answer
158 views

Event handler for document library in Sharepoint 2010

Using VS2012, I'd like to create an event handler for a document library. When a document is added to a library, an entry is created in a list. That list entry contains all the metadata from the ...
0
votes
1answer
261 views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
1
vote
0answers
84 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
1answer
167 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
1k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
0
votes
2answers
704 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
1answer
540 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
2
votes
0answers
45 views

Error thrown after SaveBinary in ItemAdded event handler

I'm working on a ItemAdded event for a document library, and I'm running into this error in SharePoint 2007... The file Lists/Shared Audit Documents/1387/Audit Report.docm has been modified by ...
2
votes
2answers
1k views

Move a document from library after adding it

I am using the ItemAdded event to fill in a metadata field. In the ItemUpdated event (after submitting the file properties diagog) - I want to move the file elsewhere. However, I get an error saying ...
1
vote
2answers
935 views

Cannot hit breakpoint for document library event receiver

Solution follows, I solved this problem: Good thing I figured out the issue after I've now wasted at least 6 hours debugging this issue. Turns out there's no VS bug, the only bug is that I am an ...
4
votes
1answer
513 views

In a document library itemUpdated event receiver, how to tell if a file was just modified?

How do I know if it is the file being updated? Since it could just be the item properties. Thank you.
1
vote
1answer
81 views

Sharepoint Foundation 2010 events

I have an installation of sharepoint foundation. I was wondering if I can catch the event where a folder is created in a document library to do some more actions in sharepoint foundation. Can I follow ...
1
vote
0answers
250 views

Document library event receiver when creating documents

I created an event receiver that processes some information in docx files when uploaded to the library. I do this in ItemAdded event. Everything works fine when the file is uploaded. When the files ...
4
votes
4answers
3k views

SPItemEventReceiver ItemAdding - Differentiate between a file and a folder

I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this: if ...
2
votes
2answers
484 views

Modifying a document when uploaded

I am modifying Word and PDF documents when they are uploaded to a document library with an event receiver. ItemAdded runs perfect without any errors, I manipulate the documents and save them to ...
2
votes
1answer
852 views

Renaming a folder with event receiver

I need to rename a folder after it is created by a user. I am currently using an event receiver and try to rename the folder in ItemAdding without any success. In ItemAdding event the folder is not ...
1
vote
1answer
1k views

Event receiver (type documents) fires for almost everything, including new usergroups, new sites etc

I have created an event receiver with the "documents" as templateid (101). <Receivers ListTemplateId ="101"> When I upload a document, the event gets fired. So no problem here. However the ...
0
votes
2answers
429 views

Custom Event Receiver - Copy To sub Folder [closed]

I need to copy my files from one document library to another document library which reside on another site and Document library contains number folders and sub folders.. The same structure should be ...
3
votes
1answer
114 views

Custom numbering scheme for document libraries

I need to create an event handler for a document library that will give custom Id's to documents and folders in it. The top folders will be prefixed with capital letters, folders and documents in ...
1
vote
2answers
1k views

Move a document from one library to another library using event receiver

Suppose one document is uploaded to the Shared Document library, I need to move the document to an other library say List. There I have to create a folder with the document name and needs to place the ...
4
votes
2answers
1k views

How to target events to different types of document libraries?

I have the requirement for multiple document libraries. Each document library will contain the same types of document, images, office documents; however, when items are added to the library, a custom ...
3
votes
1answer
648 views

Determine if a document library is a sharepoint library

I'm adding some content types to every standard-document library which is created over the "List Added"-EventReceiver. When a web is created the are some new doclibs for example in a team site there ...
2
votes
2answers
746 views

Changing OOB content types on selected lists

My customer want to have a global taxonomy for all content. I have created content types that inherit from the usual content types (Documents, Pictures, Pages) that will contain this taxonomy. To ...
2
votes
5answers
4k views

Custom Event Receiver - Copy To Folder

I am in the process of writing a custom event receiver. The basic flow is as follows: Document is added to Library Based on metadata of document, we check to see if a folder within another document ...
1
vote
1answer
428 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
282 views

SPFile is empty the second time the logic is run

I'm developing event receivers in SharePoint 2010. I have a doc. library, when someone adds to this library, a infopath form must be filled out and saved. When the form is saved to the library, my ...
1
vote
1answer
941 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 ...
1
vote
1answer
3k views

SharePoint Document Library Item Level Permissions

Have a document library in MOSS 2007. Item-Level permissions are not surfaced in the default SharePoint UI for Document Libraries, however the WriteSecurity and ReadSecurity properties are available ...