iframe中doc文件的本地路径

时间:2017-03-06 08:33:55

标签: iframe google-docs google-document-viewer

如果你去打开这个链接,你会在页面中看到一个doc word文件。

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

现在我如何在url中传递我自己的文件,使用google docs viewer打开它们? 路径可能是这样的:

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

C:\的Inetpub \ wwwroot的\ TestProject \ UPLOADEDFILES \ Test.docx

1 个答案:

答案 0 :(得分:1)

Google Viewer无法访问本地PC上的文件。它可以打开在Internet上任何地方发布的文档,Google查看器可以在其中访问它。您可以将本地文件上传到谷歌驱动器,然后使用谷歌驱动器链接。