Questions tagged [sharepointdocumentlibrary]

A document library is a place on a SharePoint site where users can create, collect, and update files with others. The libraries may be custom modified and allow different access levels.

A document library is a place on either a SharePoint Online or Sharepoint Server site where users can create, collect, and update files with others.
The libraries may undergo custom modifications:

Access to the library is granted on the basis of permissions which can be granted to internal Sharepoint users or external. The permissions have different levels, such as read-only and contribute: http://office.microsoft.com/en-001/windows-sharepoint-services-help/permission-levels-and-permissions-HA010100149.aspx

Access to the library may be granted for a document, list item or a whole folder: http://office.microsoft.com/en-001/sharepoint-server-help/manage-permissions-for-a-list-library-folder-document-or-list-item-HA010021564.aspx

You may also grant access to external users (given right permissions) http://office.microsoft.com/en-001/sharepoint-server-help/sharepoint-document-libraries-i-introduction-to-sharing-files-RZ010234528.aspx?section=3

Sharepoint libraries accept selected file types and some document types, like .aspx may be added to a Sharepoint library: http://office.microsoft.com/en-001/office365-sharepoint-online-small-business-help/types-of-files-that-cannot-be-added-to-a-list-or-library-HA101907868.aspx

Their content may be accessed by apps you are developing, e.g. using NAPA, Visual Studio: http://msdn.microsoft.com/en-us/library/office/fp179930.aspx

182 questions
2
votes
1 answer

DocumentLibraryVersions

The following code was working but something happened and now it hangs on Set DocVersions=Activeworkbook.DocumentLibraryVersions I have even tried simple subs that with only the Dim and Set lines and it just hangs. I have also tried removing the…
Michael
  • 21
  • 1
2
votes
2 answers

How can I get the Document Libraries permissions in Sharepoint 2010?

I'm developing a Webpart and I need to go through every document library and get its permissions. Basically I need to get the groups and its permissions associated with the document library. I have iterated through the properties and methods of a…
empz
  • 11,509
  • 16
  • 65
  • 106
2
votes
1 answer

The default value for a column in not set when copy file using rest api (SharePoint 2013 standalone)

I am trying to copy files from one folder to another folder using SharePoint REST API. Some columns inside the destination folder have defined a default value. Even though the files are copied successfully, some files do not get the default value…
2
votes
1 answer

sharepoint 2013 create document library using List Template C#

It is possible to used a list template to create new document library, I am trying following code but its is not working.it just create library without using template. ListTemplateCollection listTemplates1 =…
2
votes
1 answer

Insert Publishing HTML column value into MS word document

How can I insert content/value of Publishing HTML column of document library SharePoint 2013 into MS word document? Quick parts in MS Word don't display that column so I don't know how to import it. Any help would be very appreciated.
Danilo
  • 223
  • 1
  • 4
  • 19
2
votes
0 answers

Using C# Directory/File operations to copy Sharepoint directories is failing because requires login

I have a process that uses the UNC paths for sharepoint (instead of http://mysite.sharepoint/ it uses \mysite.sharepoint). Using Windows Explorer, I have no problem browsing to my sharepoint's document libraries. But when I do it programmatically…
cjm3407
  • 43
  • 6
2
votes
1 answer

How to create a new item as file link in document library?

I have to use the SPFileCollection.Add Method to add a new item into a document library but no overload of this method seems to fit. The szenario: If a file is added to a document library and the departments choice field with multi-select…
Ki_Netic
  • 110
  • 1
  • 10
2
votes
0 answers

Sharepoint 2013 client document library Column validation

I try to upload file to document library with metadata. When I enter validation for one column the file does not upload even data is correct or incorrect. Always show this exception List data validation failed My Code Is if…
2
votes
1 answer

Metadata navigation on document library, removing "Folders" from the TreeView

Does anyone know how to add only one custom MetadataNavigationHierarchy? In my case, I would like to remove Folders from the TreeView, so my custom MetadataNavigationHierarchy is the only one being displayed. I'm currently working on a Console…
2
votes
1 answer

SharePoint 2007 Document Libraries vs. Folders

We are building a new SharePoint 2007 web site to replace our intranet website for the company I work for, and a common debate keeps coming up. Specifically, should we be using multiple document libraries (ex. 1 for each department), or one…
NJITBEN
  • 139
  • 3
  • 10
2
votes
1 answer

How to itetrate through files in a document library

I've been creating a provider hosted app and I'm stuck at retrieving Documents titles using CSOM C# my code is as follows. var spContext = SharePointContextProvider.Current.GetSharePointContext(Context); using (var clientContext =…
2
votes
3 answers

update a file content in SharePoint document library with REST - javascript

I want to update a file in SharePoint document library with the following code. As descriptions…
2
votes
1 answer

Rename File Using SharePoint Client Object Model?

This may seem like a stupid question but I can't seem to find any answers on Google. I have written a method to query SharePoint and rename a document based on the document name parameter I specify. I have used a similar method to rename folders and…
2
votes
1 answer

Specified argument is out of the range of valid values. Parameter name: Server Relative URL

I am trying to download a document from a SharePoint document library using MVC however whenever I try to run my code I get the error mentioned above. I am new to SharePoint so please be nice. here is my code: Web helper: public Stream…
Josh Price
  • 259
  • 3
  • 9
  • 18
2
votes
1 answer

Search for a specific document in a document library programatically

I am trying to search a document library for a specific document. I am fairly new to sharepoint and cannot figure out how to retrieve the document. Below is my code: private void button12_Click(object sender, EventArgs e) { using (var site =…
1
2
3
12 13