on 02-02-2016 11:41 AM
Hi Colleagues,
I have various documents (docx, txt, pdf, ppt, xslx) that i would like to open in a preview mode.
The only Viewer control i could find in UI5 was for Pdf( PDF Viewer).
The first solution that came up was using iframe tag of sap.ui.core.HTML to embed the document :
var oHtml = new sap.ui.core.HTML();
oHtml .setContent("<div style='width: 100%; height: 100%; overflow:scroll' ><iframe id='tcf' style='width: 500px; height: 500px; overflow:scroll' src='http://help.sap.com/hana/hana_dev_en.pdf'></iframe></div>");
Just want to understand, is it advisable to use iframe to preview documents? Are there any security issues with its usage?
Your help is appreciated.
Thanks,
Aastha
Look its correct
Example application Example-1 and Example-2 and Example-3
Kindly let me know if you need any information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.