<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>