Preview Excel, Power Point, Word on a website

Asked

Viewed 29 times

0

Good morning, I’d like to know how to preview Excel, Power Point, Word on a website. For PDF I managed to do with this code.

<embed src="RelatorioM16.pdf" width="760" height="500"></embed>

or

<iframe src="RelatorioM16.pdf" width="760" height="500"></iframe>

When making this code for Excel, Power Point, Word on the site it downloads the file, which I don’t want, I want to preview. Anyone can help?

  • I think it is not possible directly, I would have to print the document and show the image or read and transform into HTML. If I’m not mistaken there is a format that already saved as HTML

1 answer

0


Hello,

The browser can’t preview word or excel unless your clients have extensions for it like office webapps Officewebapp

The other option is to have paid/free third-party components that do this to you.

Last option being you to do :), is to have the server of the web application installed and put a bit of code that converts your Excel/Word/Powerpoint to PDF or HTML.

I hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.