documents extraction

Can someone please tell me how to extract documents out of Sharepoint 2007 using the Object model

I am really finding it hard to get any help on this topic!


thanks for any help


Answer this question

documents extraction

  • CodePfo

    not really having much luck at the moment...sorry, although I did get pointed in the direction of an app called the "SharePoint Solution Generator" which may help, but I havent looked at it yet

  • Phil Rogers

    Hi Mark, Did you find how

    I need the same thing, I need to extract documents from my sql 2005 database because my Sharepoint 2007 its dead and without backup, i only have the DB


  • Jake Reynolds

    Have you tried the DEP extraction program that comes with SQL Report Services

  • Paul Stovell

    Hi,

    Try this


    SPList lst; //Put the code here in order to get access to the list that contains the attachment

    SPListItemCollection itemcol = lst.Items;
    foreach (SPListItem lstitem in itemcol)
    {
    SPAttachmentCollection atchcol = lstitem.Attachments;
    string attachmentURL = lstitem.Attachments.UrlPrefix;
    string documentURL = attachmentURL + atchcol[0]; //Now you have the URL of the attachment you can use this URL.
    }

    Thanks

    Arjuna.


  • documents extraction