C # WebBrowser not displaying inline object

This might be a dumb question, but I just can't get it to work. I am trying to embed a pdf file in a web browser in a C # program. Just? I thought so, but it turned out differently. Here's the html code:

<object classid="" type="application/pdf" width="400" height="300" id="pdf1">
<param name="src" value="Test.pdf" />
    <div style="text-align:center; color:#CCCCCC" >No Preview Available.</div>
</object>

And all this in the html file. The funny thing is that this works fine in IE (which, as I understand it, uses WebBrowser). I tried to implement an object tag non-IE, with the src and whatnot attribute, but it did the same. What happens is a WebBrowser control that displays No Preview Available, which means the PDF code has not been successfully implemented. Here's the C # code:

wbPreview.Navigate("I:/Documents/Visual Studio 2008/Projects
                      /PlanReferenceDatabase/test.html");

Can someone tell me why a web browser in C # cannot display pdf , but maybe a different browser?

+3
2

:

<object type="application/pdf" data="myPdfFile.pdf" class="yourPdfClass" width="550px" height="800px"/>

data , , - IE8/IE9, .

+2

. , - , : "target platform" build visual studio x86, , , 64- IE PDF . -, embed , IE , "classid" Active X, , .

+1

All Articles