What is the best way to move a document from one document library to another? I don't need version history or saving CreatedBy and ModifiedBy metadata ...
SPList lib1 = (SPDocumentLibrary) web.Lists["lib1"]; SPList lib2 = (SPDocumentLibrary) web.Lists["lib2"]; SPItem item1 = lib1.Items[0]; //insert code to move item1 to lib2
I am currently looking at SPItem.MoveTo() , but am wondering if anyone has resolved this problem and got some advice. Thanks in advance.
source share