New answers tagged

0

IE asks for downloading the PDF file instead of displaying it inline because of a SharePoint security setting. You can disable this behabior by changing that setting: from the Central Administration, go to "Application management", select your Web app, then "General settings" and set "Browser File Handling" to "permissive". Note there's other more granular ...


2

Why you are using SPLinkButton? You can simply use HyperLink with its attribute called Navigateurl from your code. You can follow below steps in below mentioned URL. Open PDF files from a Document Library in a New Window Follow this Open IIS manager (Start | Control Panel | Administrative Tools | Internet Information Services Manager). Expand the ...


0

When creating the modal dialog, in the options just try setting the URL to the location to the PDF file. I haven't tried this myself with a PDF file but it should work: var options = { title: "Modal title", url: "/site/documentlibrary/document.pdf", }; SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);



Top 50 recent answers are included