A
A
Andrew2019-03-05 16:42:49
Word
Andrew, 2019-03-05 16:42:49

Is it possible to display the contents of a DOC file via docs.google.com/viewer?url in an iframe?

Hi everybody!
I'm using fancyBox to display a pdf in a modal window on a website. In general, everything is clear.
I want to use fancyBox tools to display DOC file content.
Direct link works great.
But, as soon as I mount it via iframe - google starts to swear.
The question is, is it possible to "make friends" with google and still upload a file on your site via an iframe?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2019-03-10
@oshliaer

Add a required parameterembedded=true

<iframe src="https://docs.google.com/viewerng/viewer?url=https://cit.tsn.47edu.ru/doc/Programma_provedenia_regionalnykh_UTS_24_11_2018.docx&embedded=true">
</iframe>

Well, as an alternative, a native viewer for this format
<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=https://cit.tsn.47edu.ru/doc/Programma_provedenia_regionalnykh_UTS_24_11_2018.docx">
</iframe>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question