Issue in Google doc viewer

1.6k views Asked by At

i am try to show pdf files using googledoc viewer for that i am using the following code

 <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>

but in my website page loads in iframe shows the following message

 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.

When i am clicking on that "here" link, my document is loaded in iframe. I cann't understand what is the problem . please help me

2

There are 2 answers

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

Try it now,is it ok?

1
sharp On

Your file doesn't exist at all...check the link in the code,it shows 404 Error