码迷,mamicode.com
首页 > 其他好文 > 详细

畜禽免疫系统使用LODOP打印

时间:2019-08-13 15:21:24      阅读:64      评论:0      收藏:0      [点我收藏+]

标签:href   styles   ext   cli   opencl   使用   theme   close   color   

 <div class="btn_box">
        <asp:Button ID="btnPrint" Text="预览并打印" runat="server" OnClientClick="javascript:myPreview5();" />
        <asp:Button ID="btnExcel" Text="保存到本地" runat="server" OnClientClick="SaveExcel();" />
        <asp:Button ID="btnClose" Text="关闭" runat="server" OnClientClick="OpenClose();" />
    </div>
    <script language="javascript" type="text/javascript">
        var LODOP; //声明为全局变量

        function myPreview5() {
            LODOP = getLodop();
            var strStyleCSS = "<link href=‘../Themes/Styles/amind.css‘ type=‘text/css‘ rel=‘stylesheet‘>";
            var strFormHtml = "<head>" + strStyleCSS + "</head><body>" + document.getElementById("Div1").innerHTML + "</body>";
            LODOP.ADD_PRINT_HTM("0%", "0%", "100%", "100%", strFormHtml);
            LODOP.PREVIEW();
        };
        function myPreview6() {
            LODOP = getLodop();
            var strStyleCSS = "<link href=‘../Themes/Styles/amind.css‘ type=‘text/css‘ rel=‘stylesheet‘>";
            var strFormHtml = "<head>" + strStyleCSS + "</head><body>" + document.getElementById("Div1").innerHTML + "</body>";
            LODOP.ADD_PRINT_HTM("0%", "0%", "100%", "100%", strFormHtml);
            LODOP.PRINT();
        }
    </script>

 

畜禽免疫系统使用LODOP打印

标签:href   styles   ext   cli   opencl   使用   theme   close   color   

原文地址:https://www.cnblogs.com/Jeely/p/11345917.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!