I need a way to preview a word document from the website I'm building without having to download it first. I'm using Vue.js to build it
Asked
Active
Viewed 769 times
0
-
1I'm not sure if OP is looking for a library or a native way to preview word documents but in either case this question is not fit for SO, I can think of a few other stack exchanges that would be a better fit – Nino Filiu Feb 17 '21 at 13:37
1 Answers
0
You can use iframe
to do this.
<iframe src="https://docs.google.com/gview?url=<file_url>&embedded=true"></iframe>
Replace <file_url>
with you document file url
.

Majid Ghafoorzade
- 480
- 3
- 13
-
fyi this service does not have a super high SLA, but there are hacks around it https://stackoverflow.com/q/40414039/8186898 – Nino Filiu Feb 17 '21 at 13:39
-
Nothing is showing, I'm using a link from firebase i.e. my files are in firebase storage – Masibulele Mgoqi Feb 17 '21 at 14:32