Render Word Document in Rails

Hash tags: Rails Word Document Render

Here is a very simple way of rendering embed word/excel document in rails application.

What we need for that:
  • A doc or excel document we want to render
  • Access to https://docs.google.com/
  • Any web sites ready to render the document

Steps:
1) Copy your document over to google docs.
 
Screen Shot 2019-11-29 at 9.27.44 PM.png 239 KB

2) Click on the newly uploaded document and choose view only
Screen Shot 2019-11-29 at 9.30.12 PM.png 85.4 KB


3) Click on the 3 dots button in the right upper corner and select "embed item"
Screen Shot 2019-11-29 at 9.31.03 PM.png 81.3 KB


4) Select and copy iframe tag we will need to add it into our web app
Screen Shot 2019-11-29 at 9.32.43 PM.png 85.3 KB

5) Go to your web app and add it to a place you want to render it. In my project that was CV page:
Screen Shot 2019-11-29 at 9.36.06 PM.png 577 KB


Now something to keep in mind - it won't let you edit or delete the original document. 

PROJECTS


MORE BLOGS