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