Reputation: 391
i want to display word documents in my web browser without allowing it to get downloaded i tried with Iframe but it displays only pdf files but not office documents need help to solve this issue.. Thanks in Advance
Upvotes: 0
Views: 1048
Reputation: 2318
You have to render office document into html. If your document is office open xml. than you can extract it and read the xml data file inside then render them.
The easiest way is using Google Docs
to open document on your site
FYI. Opening pdf on iframe is actually download it and let adds-on on the browser to display it. So, user can still download your pdf.
Upvotes: 1