Hot answers tagged

5

Out of the box, this isn’t possible. You can, however, restrict both download and printing with Information Rights Management for all users, but not for a group of users. And since there is a snipping tool and a print screen function on all operating systems, users can with a little effort still get the content of document and save it somewhere else. So this ...


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

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

You won't be able to do that even if you disable the "Download a copy" button. If a customer can open files in a client application like Word or any kind of PDF viewer, that user will be able to save the files from there.


2

If you get an error adding SharePoint DLL which states Could not load file or assembly 'microsoft.sharepoint, Version=12.0.0.0 you can try using this script instead [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") and you can continue exporting the WSP from your 2007 environment $farm = ...


1

According to SharePointOnlineCredentials class from SharePoint Online Client Components SDK the expiry date for authentication cookie (SPOIDCRL) should be set to 1 hour The following example demonstrates how to provide SPOIDCRL HTTP header in order to perform request authentication in SharePoint Online/Office 365: var request = ...


1

Try adding: context.Response.AddHeader("content-disposition", "attachment;filename=" + file.Name);


1

You could always create your own download link, making use of the internal download application page in SharePoint. To create a link to download a video (or any other item that resides in the SharePoint), just create an good old anchor link as in my example and place in a script editor on a page. The key that makes this work is this part that allows you to ...


1

To list all master pages: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue; Get-SPWebApplication | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, MasterUrl To download a specific file / master page: $fromsite = "<your sp url>" $fromfile = "/_catalogs/masterpage/seattle.master" $tofile = ...


1

I solved it this way : Installed export cookies add-on for my browser, Logged into the Sharepoint website Exported the cookie into a file named cookie.txt then run the following command line with wget : wget --cookies=on --load-cookies cookies.txt --keep-session-cookies -m https://yoursharepoint.com



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