title: No preview available iframe aspx page
body: <p>Please help,I know this question has been asked before but I didn't get any solution ...I have an aspx page which has to display some files of types docx and xlsx... I am trying to use iframe with google docs viewer, but an error is thrown:No preview available. Below is my code in my aspx page:</p>
  
  
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;style type="text/css"&gt;
      body {
       margin: 0px;
      }
      .doc {
         border: 0; width: 100%; height: 100%;
      }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
       &lt;iframe class="doc" src="https://docs.google.com/gview?url=http://localhost:2342/Project-Test-Temp/Uploaded/Save.docx"&amp;embedded=true"&gt;&lt;/iframe&gt;
       &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is a working example:</p>
  
  <p><a href="http://jsfiddle.net/kbu2gsfm/" rel="nofollow noreferrer">http://jsfiddle.net/kbu2gsfm/</a></p>
  
  <p>I have tried this:</p>
  
  <pre><code>&lt;iframe class="doc" src="../UploadedImages/Save.docx"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>But it is downloading file !!</p>
  
  <p>How can I resolve this issue and display my word and excel file normally? I appreciate your helps</p>