当前位置:编程学习 > C#/ASP.NET >>

在.net中嵌入PDF

方法一:C#

[csharp]
<div> 
    <object height="600" width="100%" border="1" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"> 
        <param name="_Version" value="65539"/> 
        <param name="_ExtentX" value="20108"/> 
        <param name="_ExtentY" value="10866"/> 
        <param name="_StockProps" value="0"/> 
        <param name="SRC" value="456.pdf"/> 
    </object> 
</div> 

    <div>
        <object height="600" width="100%" border="1" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000">
            <param name="_Version" value="65539"/>
            <param name="_ExtentX" value="20108"/>
            <param name="_ExtentY" value="10866"/>
            <param name="_StockProps" value="0"/>
            <param name="SRC" value="456.pdf"/>
        </object>
    </div>

方法二:HTML

[html]
<div> 
    <iframe id="iframeContent" name="contentIframe" style="scroll: no;" frameborder="0" 
        width="100%" height="500px" src="456.pdf"></iframe> 
</div> 

    <div>
        <iframe id="iframeContent" name="contentIframe" style="scroll: no;" frameborder="0"
            width="100%" height="500px" src="456.pdf"></iframe>
    </div>
 

效果图

 

 

\
补充:软件开发 , C# ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,