Tag Info

Hot answers tagged

9

Copy your SharedPoint document library URL for example, http://sumon-pc/sites/dc/ts/Shared Documents Open Windows Explorer, right click My Computer and select Map Network Drive Choose drive letter that you want to use, then enter the URL that you copied in step 1. Then click finish. If prompt for username and password enter your SharePoint login username ...


2

Below code will create and update a document: public void UpdateAndCreateFile(SPWeb web) { try { SPSecurity.RunWithElevatedPrivileges(delegate() { string TemplateUrl = string.Empty; try { TemplateUrl = "Your ...


2

If I understand you correctly there are 5 metedata,columns that automatically created when the word document is created. In your word template on the insert tab, go to the "Quick Parts" and select document properties. If those fields are attached to your content type you should see them there. Add them to your Word Document template wherever you want then to ...


2

I can suggest 3 ways to achieve this: First 2 are REST and Javascript: You could use SP.File.checkOutType property to determine whether document is checked out of a document library REST $.ajax({url: "/_api/web/getFileByServerRelativeUrl('" + docUrl + "')/checkOutType", headers: { "Accept": "application/json; odata=verbose" }, success: ...


2

Try: $item.BreakRoleInheritance($false,$false) You will have to specify the first parameter as False, which means all the permissions from the parent will not be copied over. See the documentation for BreakRoleInheritance .


2

You can use below mentioned code to move files from one Document library to another document library programmatically. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; namespace MoveTo { class Program { static void Main(string[] args) { using (SPSite site = ...


1

If the user for some reason is accessing it with a IE 64 bit you will not able to see Datasheet view (to check this is the case see if the user sees the button open with explorer as grayed out). Datasheet view works with Firefox and Chrome however I noticed that unlike IE, those 2 browsers do not allow PASTE into the datasheet view.


1

First, we need to distinguish two kinds of files: Office files and other files. For Office files, you may open (and edit) them in the browser by using Office Web Application (OWA) if it's deployed and configured to work with SharePoint in your environment (or in SharePoint Online). If OWA is configured correctly, supported Office documents (Word, Excel, ...


1

So, first off, yikes. My first question to a situation like that will always be, "Do we actually need a single library with that many things inside of it? If so, why?" Now, to the problem at hand. Why have it all in a single library? Why not create a second library and set permissions to grant read access to your read user group on that library? You ...


1

Using GUI, you can open Explorer View and make simple drag and drop.


1

I needed to get the value property (OpenBinaryStream().Value). That's what appears to be storing the actual stream. My memory is a little fuzzy, but I don't remember having to do that before.. Regardless, it works!


1

The list of fonts in a word file is stored in an XML file called fonttable.xml. To get this file, you need to convert the word file into a package (zip file) and parse the contents of fonttable.xml. Note: You need to add 2 references: DocumentFormat.OpenXml.dll and WindowsBase.dll to your project for handling word processing. Following code handles ...


1

You can try something like this: var thaUrl = "<app web url>/_api/web/lists/GetByTitle('<library>')//CheckOutType'; jQuery.ajax({ type: "POST", headers: { "Accept": "application/json;odata=verbose", "X-RequestDigest": $("#__REQUESTDIGEST").val() }, contentType: 'application/json', url: thaUrl, success: ...


1

I Managed to fix this by deleting and re-creating the library. It seemed that there's an important root folder "/1" that I'd deleted.


1

The available content types are configured at the library level, and can't be configured differently for different folder in the same library. The easiest and best way to achieve the result you want is to use multiple libraries, you can then configure the content types for each library as needed. If you have the possibility of using server side code, you ...


1

Excel services will not "refresh" from inside SharePoint. Another service called "PowerPivot" can be deployed, and this extends excel services and will give you the ability to schedule a refresh of the Excel workbook. What has to occur is workbook must be opened, refresh the data, then saved back to SharePoint. That is what the PowerPivot plugin does. It ...


1

It behaves that way because that is how the search display template works, if it has a title, it shows it, otherwise it falls back to the file name. Title is by far one of the highest ranking priorities in the search algorithm. If you find your results lacking, giving documents accurate title is the best way to boost relevancy. Name is the file name, title ...


1

This functionality is already developed. :)


1

Not to resurrect an old thread but I thought I would add my regex. One issue from KB905231 it is not clear if the prohibited file suffixes (i.e. .files or _files, etc.) are including or excluding the file extension. I assumed including so foo.doc.files would not match but foo.files.doc would. ...


1

I just encountered that in one of our sites. Management of Content Types was not allowed and the Title field was required. I could not make changes to the Title field in the library settings, so I had to allow management of Content Types, go into the Content Type, click on the Title Field, and edit the setting there. I chose "hidden" rather than optional, ...


1

There is also another option (in 2013) where you can use CSR. In below js code what I have done is, given the display form link to the Title column of a document library. RegisterModuleInit('/SiteAssets/Titlelink.js', updateTitle); updateTitle(); function updateTitle() { var priorityFiledContext = {}; priorityFiledContext.Templates = {}; ...


1

You can add a link to display form by creating new text column on a list and setting following properties on it from code or PowerShell: LinkToItem and LinkToItemAllowed. I don't think those options are available anywhere in GUI in SharePoint 2013. Example: SPField field = spList.Fields.GetFieldByInternalName(fieldInternalName); field.LinkToItemAllowed = ...



Only top voted, non community-wiki answers of a minimum length are eligible