Skip to Content
0

Open attachment inline in sapui5

Jun 13, 2017 at 12:24 PM

187

avatar image
Former Member

Hello,

I am looking an option how to open .docx / .txt files inline in SAPUI5 application. In Master-detail page when we click on attachment icontabbar, it gives us a list of attachments. On click of any attachment link it shows option to download. But instead of downloading that attachment I am trying to open it inline. I am able to achive for .pdf files but for .doc I am getting blank screen.

So please suggest your ideas.

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Jun 16, 2017 at 05:47 AM
0

Any suggestion please ...

Share
10 |10000 characters needed characters left characters exceeded
saurabh vakil Jun 16, 2017 at 08:33 AM
0

Most browsers have integrated PDF viewer so when you click on a PDF attachment it opens inline. However for .doc/.docx, .xls/.xlsx type attachments there is no integrated viewer in the browser so it is not possible to open these attachment types inline in the browser. You will have to save these files on our local disk and open them using appropriate viewer applications.

However, if you open your app using SAP Fiori Client on an iOS device then these files can be opened by the inline attachment viewer in Fiori Client.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jun 16, 2017 at 10:46 AM
0

Thanks Saurabh,

i understand the browsers don't have supportive plugin to display office documents. But it was initially showing plugin not supported but when I added office plugin in chrome extension, now it is showing a page but its blank and this is the same behaviour with IE as well. So I assume there should be some alternative solution to achieve it.

As you have suggested to open in fiori client, I will test it.

Thanks

Share
10 |10000 characters needed characters left characters exceeded