Sunday, September 4, 2011

SharePoint HelpSite by K NarayanaRao http://hisambit.wordpress.com/

http://hisambit.wordpress.com/

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. create 2 document library a and b add content approval for "A"

    with using of the event receiver. Approval document send to another specified document library

    /*******************************************************************************************************************************************************************************************/
    i have written this code plz say me where i have did wrong




    namespace EventReceiverProject1.EventReceiver1
    {
    ///
    /// List Item Events
    ///
    public class EventReceiver1 : SPItemEventReceiver
    {

    public override void ItemUpdated(SPItemEventProperties properties)
    {
    base.ItemUpdated(properties);
    SPListItem item = properties.ListItem;

    if (properties.ListItem["Approval Status"].ToString() == "Approved")
    {
    string destination = item.ParentList.RootFolder.Name + "/bbb/" + item.File.Name;

    item.File.CopyTo(destination, true);

    }
    }


    }
    }

    ReplyDelete