0
我上传了文档并将其存储在数据库中。现在我尝试在浏览器中使用Google文档查看器显示文档。但是,不显示。在输出页面有一个链接,而点击该链接它将下载该特定文件。我发布了下面的代码和输出。给我一些想法来显示文档。如何在文档查看器中显示上传的文档(.doc,.docx,.pdf,.odf)
模板
<iframe src="http://docs.google.com/viewer?url=http://127.0.0.1:8000/accounts/media/{% for detail in profile_detail %}{{ detail.res_act }}{% endfor %}&embedded=true" style="margin:0 auto; width:800px; height:800px;" frameborder="0"></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.
我发布了另一个问题。请分享您的想法 – Karthik 2013-05-06 06:30:27