title: C# WebBrowser won't display embedded object
body: <p>This may be a dumb question, but I just can't get it to work. I'm trying to embed a pdf file into a webbrower in a c# program. Simple right? I thought so, but it proved otherwise.
  Here's the html code:</p>
  
  <pre><code>&lt;object classid="" type="application/pdf" width="400" height="300" id="pdf1"&gt;
  &lt;param name="src" value="Test.pdf" /&gt;
      &lt;div style="text-align:center; color:#CCCCCC" &gt;No Preview Available.&lt;/div&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>And that's all thats in the html file. The funny thing is, this works perfectly in IE (which as I understand is what the WebBrowser uses). I've tried implementing the object tag the <code>non-IE</code> way, with an src attribute and whatnot, but it did the same thing. What's happening is the WebBrowser control is just displaying <code>No Preview Available</code> meaning that the pdf was not successfully embedded. Here's the c# code:</p>
  
  <pre><code>wbPreview.Navigate("I:/Documents/Visual Studio 2008/Projects
                        /PlanReferenceDatabase/test.html");
  </code></pre>
  
  <p>Can someone tell me why the <strong>web browser in c# cannot display the pdf</strong>, but the other browser can?</p>