Google文档查看器中的问题

时间:2013-12-23 08:33:02

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

我尝试使用googledoc viewer显示pdf文件,因为我正在使用以下代码

 <iframe src="http://docs.google.com/gview?
  url=http://sitename/Content/Bullettin/Data/tredsetter.pdf &embedded=true" 
  style="width:790px; height:500px;" frameborder="0"></iframe>

但在我的网站页面中,iframe中的加载显示以下消息

 Sorry, we were unable to find the document at the original source.
 Verify that the document still exists.
 You can also try to download the original document by clicking here.

当我点击“here”链接时,我的文档会加载到iframe中。我不明白是什么问题。请帮帮我

2 个答案:

答案 0 :(得分:1)

    <iframe src="http://docs.google.com/gview?url=URL&embedded=true" style="width:790px; height:500px;" frameborder="0"></iframe>

现在试试,好吗?

答案 1 :(得分:0)

您的文件根本不存在...请检查代码中的链接,它显示404错误