Web content Printing

Source: Internet
Author: User

<%@ page language= "C #" autoeventwireup= "true" codebehind= "Daochuepm.aspx.cs" inherits= "Web.emp.emp.daochuepm"% >

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<title></title>
<link href= ". /.. /public/css/common.css "rel=" stylesheet "type=" Text/css "/>
<script src= ". /.. /public/js/jquery-1.8.0.min.js "type=" Text/javascript "></script>

<style type= "Text/css" >
. Commontab{text-align:center;width:760px;border-collapse:collapse;}
. commontab td,th{margin:0px;line-height:25px;font-size:14px;border:1px solid black;}
. Commontab. Tb{background-color:white;}
. Commontab. bl{text-align:right;background-color:white;font-size:14px;}
. Commontab. br{text-align:left;background-color:white;font-size:14px;}
. divtitle{font-size:20px; font-weight:bold; text-align:center; width:760px; margin-bottom:10px;}
. div{font-size:16px; width:760px;}
</style>
<script type= "Text/javascript" >
$ (function () {
Execprint ();
});

var hkey_root, Hkey_path, Hkey_key;
Hkey_root = "HKEY_CURRENT_USER";
Hkey_path = "\\Software\\Microsoft\\Internet explorer\\pagesetup\\";
Set page header footer to print is empty
function Pagesetup_null () {
try {
var Wsh = new ActiveXObject ("Wscript.Shell");
Hkey_key = "header";
Wsh.regwrite (hkey_root + Hkey_path + hkey_key, "");
Hkey_key = "Footer";
Wsh.regwrite (hkey_root + Hkey_path + hkey_key, "");
}
catch (e) {
alert (e.message);
}
};
function Execprint () {
Pagesetup_null ();
Window.print ();
};
</script>
<body>
<form id= "Form1" runat= "Server" >
<div class= "divtitle" > Staff list </div> <%--<div style= "width:610px;float:right;font-weight:bold; font-size:14px; " >R-6.3-11</div> <div style= "WIDTH:610PX;FONT-WEIGHT:BOLD;FONT-SIZE:14PX;" > Project name: <asp:label id= "GCMC" runat= "Server" ></asp:Label></div>--%> <table class= " Commontab ">
<tr>
&LT;TD style= "width:110px;" > Equipment Name:</td>
&LT;TD style= "width:230px;" >
<asp:label id= "SBMC" runat= "Server" ></asp:Label>
</td>
&LT;TD style= "width:110px;" > Device number:</td>
&LT;TD style= "width:230px;" >
<asp:label id= "SBBH" runat= "Server" ></asp:Label>
</td> </tr> <tr>
&LT;TD style= "width:110px;" > Operator:</td>
&LT;TD style= "width:230px;" >
<asp:label id= "CZG" runat= "Server" ></asp:Label>
</td>
&LT;TD style= "width:110px;" > Fault Level:</td>
&LT;TD >
<asp:label id= "GZJB" runat= "Server" ></asp:Label>
</td> </tr> <tr>
&LT;TD style= "width:110px;" > Fault start time:</td>
&LT;TD style= "width:230px;" >
<asp:label id= "GZKSSJ" runat= "Server" ></asp:Label>
</td>
&LT;TD style= "width:110px;" > Failure End Time:</td>
&LT;TD >
<asp:label id= "GZJSSJ" runat= "Server" ></asp:Label>
</td> </tr> <tr>
&LT;TD style= "width:110px;" > Failure Duration:</td>
&LT;TD style= "width:230px;" >
<asp:label id= "GZCXSJ" runat= "Server" ></asp:Label>
</td>
&LT;TD style= "width:110px;" ></td>
&LT;TD >

</td> </tr> <tr>
&LT;TD style= "width:110px;" > Fault site:</td>
&LT;TD colspan= "3"; >
<asp:label id= "GZBW" runat= "Server" ></asp:Label>
</td> </tr> <tr>
&LT;TD style= "width:110px;" > Repair Unit:</td>
&LT;TD colspan= "3";>
<asp:label id= "WXDW" runat= "Server" ></asp:Label>
</td> </tr> <tr>
&LT;TD style= "width:110px;" > Failure Reason:</td>
&LT;TD colspan= "3";>
<asp:label id= "Gzyy" runat= "Server" ></asp:Label>
</td>
</tr> <tr>
&LT;TD style= "width:110px;" > Exclusion Measures:</td>
&LT;TD colspan= "3"; >
<asp:label id= "PCCs" runat= "Server" ></asp:Label>
</td>
</tr> <tr>
&LT;TD style= "width:110px;" > Acceptance Conclusion:</td>
&LT;TD colspan= "3"; >
<asp:label id= "YZJL" runat= "Server" ></asp:Label>
</td>
</tr> <tr>
&LT;TD style= "width:110px;" > Participant:</td>
&LT;TD colspan= "3"; >
<asp:label id= "Cyry" runat= "Server" ></asp:Label>
</td>
</tr> </table>
</form>
</body>

Web content Printing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.