龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp.net编程 >

.NET实现在网页中预览Office文件的3个方法(5)

时间:2014-10-09 11:43来源:网络整理 作者:网络 点击:
分享到:
复制代码 代码如下: script src="/FlexPaper/js/swfobject.js" type="text/javascript"/script script type="text/javascript" src="/FlexPaper/js/flexpaper_flash.js"/script 控件容器以及设置项

 

复制代码 代码如下:

 <script src="/FlexPaper/js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript" src="/FlexPaper/js/flexpaper_flash.js"></script>
 

控件容器以及设置项

复制代码 代码如下:

<div style="margin:0 auto;width:980px;">
            <div id="flashContent" style="display:none;">
                <p>
                    To view this page ensure that Adobe Flash Player version
                    10.0.0 or greater is installed.
                </p>
                <script type="text/javascript">
                    var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
                    document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>");
                </script>
            </div>
        <script type="text/javascript">
            var _filename = document.getElementById("_filename").value;
            var swfVersionStr = "9.0.0";
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {
                SwfFile: escape(_filename),
                Scale: 0.6,
                ZoomTransition: "easeOut",
                ZoomTime: 0.5,
                ZoomInterval: 0.1,
                FitPageOnLoad: false,
                FitWidthOnLoad: true,
                PrintEnabled: true,
                FullScreenAsMaxWindow: false,
                ProgressiveLoading: true,

精彩图集

赞助商链接