Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local path of doc file in iframe

If you go and open this link, you will see a doc word file rendered in the page.

https://docs.google.com/viewerng/viewer?url=http://writing.engr.psu.edu/workbooks/formal_report_template.doc

Now how can I pass my own files in url to open them using google docs viewer? Path could be something like :

\\SERVER_IP\My_Archive\2017\03\06\Test.docx

or

C:\inetpub\wwwroot\TestProject\UploadedFiles\Test.docx

like image 384
AlessHo Avatar asked Dec 20 '25 22:12

AlessHo


1 Answers

The google viewer cannot access files on your local PC. It can open a document published anywhere in the Internet, where Google viewer can access it. You can upload your local file for example to google drive and use the google drive link after that.

like image 94
Skalozub Avatar answered Dec 24 '25 05:12

Skalozub



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!