<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adminprelook1.aspx.cs" Inherits="SDMS.student.adminprelook2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript">
// function preview()
// {
// pazu.TPrinter.doPreview();
// }
function demo(){
alert("打印中");
//window.frames['myifrm'].focus();
pazu.TPrinter.header="";
pazu.TPrinter.footer="";
pazu.TPrinter.doPrint(false);
//pazu.TPrinter.writeHTMLtoOfficeFile
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--media=print 这个属性可以在打印时有效-->
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
</head>
<body>
<object classid="clsid:AF33188F-6656-4549-99A6-E394F0CE4EA4"
codebase="http://www.4Fang.net/4ff/sc_setup.exe"
id="pazu"
name="pazu" >
<param name="License" value="You Need a License from 4Fang"/>
</object>
<form id="WebForm1" method="post" runat="server">
<table class="Noprint" style="text-align:left; width:100%">
<tr>
<td align="center">
<asp:Label ID="lblNum1" runat="server" Text="学号" Visible="False"></asp:Label>
<asp:Label ID="Lblcardnumber" runat="server" Text="证书编号" Visible="False"></asp:Label>
<asp:Label ID="Lblstates" runat="server" Text="状态" Visible="False"></asp:Label>
<input type="button" name="123" value="预览并打印" οnclick="demo()"
style="height: 23px; width: 86px" />
<asp:Button ID="Btnreturn" runat="server" οnclick="Btnreturn_Click" Text="返回"
Height="22px" Width="46px" />
</td>
</tr>
</table> </center>
</div>
</form>
</body>
</html>