lkpfind.blogg.se

Microsoft edge download pdf instead of open
Microsoft edge download pdf instead of open













microsoft edge download pdf instead of open

You would see the same behavior in any other non-SharePoint HTML page if the protocol scheme is ms-word or ms-excel on a machine that has Office installed.Īdobe has not provided a similar protocol handler for PDF files with Acrobat, so there is no off-the-shelf way to open files directly in the Acrobat client directly from a SharePoint page (or Office add-in) when using a modern browser. Clicking one of these links in a SharePoint page will tell the OS to use the corresponding Office application to open the file from the target location. SharePoint 2013 and newer will render links to Office documents using those protocols.

microsoft edge download pdf instead of open

ms-word: and ms-excel:) that facilitate opening files in the local client. For Word and Excel documents, modern versions of Office provide additional protocol handlers (e.g. When the protocol scheme for the link target is http, https, or other known web protocols, the OS and the browser know to use the browser to open the requested resource. When you click a hyperlink on a web page, the browser and operating system work together to determine how to open the target resource. Internet Explorer is the only browser that allows/supports the use of ActiveX controls, so this functionality is not available outside of IE. The legacy experience that allows PDF files to open locally in Adobe Acrobat (or other default client applications) directly from the browser and from Microsoft Office add-ins relies on ActiveX controls that are installed to the client machine as part of Office. We ended up opening a ticket with Microsoft and their engineer gave us the answer: Is there another way to build a URL for an anchor tag or use Javascript to force a file to open in the host systems default application instead of download it or preview in browser? This only works in IE 11, not Edge or Chrome. OpenApp = extensionAppLocal ĮditDocumentWithProgID2(docUrl, '', 'AdobeAcrobat.OpenDocuments', '0', $.getUrlVar('siteURL'), '0', openApp) ĮditDocumentWithProgID2(docUrl, '', 'SharePoint.OpenDocuments', '0', $.getUrlVar('siteURL'), '0', openApp)

microsoft edge download pdf instead of open

Var fileExtension = docUrl.substr(docUrl.lastIndexOf('.') + 1) From other parts of the application, we link to these attachments and expect them to open directly in the appropriate application by using some javascript and the SharePoint js function editDocumentWithProgID2.Įxample: var docUrl = $.getUrlVar('docURL') We have a SharePoint 2013 site with a list containing various documents, spreadsheets, or other files.















Microsoft edge download pdf instead of open