Answer the question
In order to leave comments, you need to log in
How to view doc/pdf files in the application?
The server can have any doc, docx, pdf file. It must be opened upon request. The method below is quite working, but sometimes it refuses to show the file, I don’t know why. Who knows an alternative or why sometimes the method works through time?
window.open(' https://docs.google.com/viewer?url= ' + url + '&embedded=true', '_blank', 'location=no');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question