Tagged Questions
0
votes
1answer
1k views
Get all documents from a sharepoint document library
I want to retrieve all the existing documents from an SPDocumentLibrary in order to print them so I've tried this way but then I got stucked :
using (SPSite mysite = SPContext.Current.Site)
{
...
0
votes
2answers
308 views
Differentiate in ItemUpdated (ER) if file was edited or overwritted
I've an ItemUpdated Event Receiver, and I need to make different operations depending if the file was updated throw UI or overwritted. Is there any internal field that reflects this 2 different ...
1
vote
3answers
2k views
Getting specific SPFile from document library
I have a Document Library called "x" with file named "y". I am curious what the best way to get the SPFile object for the specified SPListItem. Currently I am using this:
...
2
votes
0answers
43 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 ...
0
votes
1answer
486 views
Looking for a way to replace the File in an SPListItem
I have implemented a system for publishing documents from a document library to a Document Centre. This uses a Send To Connection set up with the "Move and leave a link" option.
When this is used the ...
3
votes
3answers
1k views
Copying file from network to Document Library
I'm trying to save file from network location to SharePoint document library.
This is code of my method:
//parameters: string documentLibraryUrl, string filePath
FileInfo fi = new ...
0
votes
1answer
247 views
Copying a document between libraries breaks QuickParts
I am copying a file between 2 libraries which contain the same fields. So basically the source library serves as a template library. After the file is copied i update the field values in the ...