Event Receiver SPItemEventReceiver for receiving a sharepoint file
Posted on 2013-01-09
Can this be accomplished:
I have a document that contains in the file name, Type of Document, Total Amount of Document, and Date of document. For example:
I have in Document properties on the SharePoint Website: Type, TotalAmount, DateOfDoc
Can I populate these fields with SPItemEventReceiver for ItemAdded ?
(The first part, ChesterFiled is a variable lenght and not a fixed length).
I can put in the title any type of deliminator to seperate the fields, if that will help.
If not, my other thought was: Since I am uploading a file from a WFC program, it converts it to a PDF before uploading using Crystal Reports export options, I could somehow figure out how to manipulate the meta data before it uploads then somehow, figure out how to populate the Document properties with this metadata.
I like choice #1 first, as it seems like a lot less coding if it can be done.