We have uploaded an excel sheet to SharePoint 2013 document library.
We can click on this file and it opens in xlviewer.aspx page
We can also enter the url as http://sharepointsite/shared documents/docname.xls and the file will get downloaded.
Is there any way in which we can prevent download but allow users to view the file.
One solution is to put the excel sheet as a excel services webpart on a SharePoint site page.
Related
Dears,
In Excel webapp, there is a menu button to open the Excel file in desktop app.
Can this action be done in Office Scripts? Open Excel file in Desktop?
main(workbook: ExcelScript.Workbook) {}
I answered the question here already. But for people landing on this page here it is.
See Office URI Schemes
To open an Excel file you can do something like this:
ms-excel:ofe|u|https://locationofthefile.com/file.xls
Use ofe to open a file and edit or ofv to open a file and view.
There are more complex options as you can read in the docs. But this will probably do it for the most cases
Application
URI
Word
ms-word:
Power Point
ms-powerpoint:
Visio
ms-visio:
Access
ms-access:
Project
ms-project:
Publisher
ms-publisher:
SharePoint
ms-spd:
Infopath
ms-infopath:
I have a setup on sharepoint with an excel data file linked to another excel file containing charts and pivot tables based on this first file. Both files are saved together in a shared folder. I then have a site page which contains the pivots and charts displayed as web parts. I want to be able to refresh only the data file and then see the pivot file and subsequent sit page update without having to open and click refresh on any of the files.
Is this possible?
Not sure which version you're using.
For SharePoint 2013, check Configure Excel Services data refresh by using external data connections
For SharePoint online, you maycheck this demo, while this should require user logon in.
I have created a couple of sharepoint lists, one that uses a lookup on the document library to link multiple documents to a list item. The other list is to create tiled links that link to documents, again in the document library.
I am using Sharepoint as part of Office 365
The problem I have is that opening the documents from these lists open in the browser instead of the client application (usually Excel), the spreadsheets are too complex for the browser based version of Excel so I need them to always open in the client application.
So far, I have set the default open option for the document library (Documents Settings > Advanced Settings) for the master site and subsite to Open in Client application by default; obviously this works for the document library, but doesn't work for the lists.
Searched for ages on this problem and either nobody has it or people that do this aren't bothered by documents opening in the browser. Would be greatful for any help on this, or if you can think of a better way to do it....
You could export list items to excel file (List ribbon -> Export to excel) and then upload that excel file to some document library.
Then, the users would open the excel file from the library and they would need to refresh the data from excel, by clicking Data ribbon -> Refresh All
That is the closest that you can do with opening list items with excel without any programming.
Please note that users will have to be logged in to SharePoint and have the Read permissions in SharePoint list in order to Refresh the data.
When you browse a list of files in Sharepoint using IE and attempt to download the file, you get the option of opening it in read-only or edit mode. When you open the document, Office knows that the file exists in Sharepoint so when you save, it is updated in Sharepoint without the user having to re-upload the file.
I'd like to have this same functionality in a custom website. I have access to Sharepoint and the file list so I'm using the same URL that Sharepoint is to download the file but there's something else happening in Sharepoint that tells the computer to not download a copy of the file but to open it in Office from the Sharepoint URL.
Does anyone know how to mimic this same behavior so I can get a file to be opened in Office from Sharepoint to it can save directly back to Sharepoint?
The special thing about this, is the link:
It's not just http://example.com/document.docx . It's ms-word:ofe|u|http://example.com/document.docx .
Just add ms-word:ofe|u| in front of the link for letting the browser know to open the link with an other Application.
There are other strings for other links.
Open a OneNote-File with:
onenote:http://example.com/document.one
And Excel-Files with
ms-excel:ofv|u|http://example.com/document.xlsx
And just for fun a TeamSpeak Link:
ts3server://example.com
Create URL for MS Office 2010 (and higher) to:
open document in view mode:
ms-excel:ofv|u|http://server.com/path/filename.xlsx
open document in edit mode:
ms-excel:ofe|u|http://server.com/path/filename.xlsx
List of MS Office apps URL scheme names:
ms-word:
ms-powerpoint:
ms-excel:
ms-visio:
ms-access:
ms-project:
ms-publisher:
ms-spd:
ms-infopath:
MS has a good page with explanation:
MS Office Dev Center > Office URI Schemes
Someone put a hyperlink to a document stored in SharePoint, in the All Links tab of a TFS task.
When I double click it, it opens up in a new browser tab in VS2010, then asks whether to download it ("Open/Save" dialog).
The result is that the file is downloaded and then opened as a local copy.
What I want to do is to open the document directly from the URL of the SharePoint site so editing will be done directly.
Is this possible?
Thanks!
I would asume that if you select "Open" that it would open off the sharepoint server. If this is not the case, then you would need to navigate to that document in Team Explorer or on the Sharepoint site and open it from there.