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






