日期:2014-05-18 浏览次数:20477 次
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default9.aspx.cs" Inherits="Default9" %>
<!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>Untitled Page</title>
<style type="text/css">
.tdp
{
border-top: 2 solid #000000;
border-right: 2 solid #000000;
border-bottom: 1 solid #000000;
border-left: 1 solid #000000;
border-collapse:collapse;
}
.tabp
{
border-top: 0 solid #ffffff;
border-right: 0 solid #ffffff;
border-bottom: 1 solid #000000;
border-left: 1 solid #000000;
}
</style>
<style media="print" type="text/css">
.noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
</head>
<body>
<form id="form1" runat="server">
<object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0"
width="0">
</object>
<input type="button" value="打印" onclick="document.all.WebBrowser.ExecWB(6,1)" class="noprint" />
<input type="button" value="直接打印" onclick="document.all.WebBrowser.ExecWB(6,6)" class="noprint" />
<input type="button" value="页面设置" onclick="document.all.WebBrowser.ExecWB(8,1)" class="noprint" />
<input type="button" value="打印预览" onclick="document.all.WebBrowser.ExecWB(7,1)" class="noprint" />
<table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse;
width: 500pt; height: 730pt;" bordercolor="#000000" align="center">
<thead style="display: table-header-group">
<tr style="font-weight: bold">
<td style="height: 23px">
This is my body</td>
<td style="height: 23px">
This is my body</td>
<td style="width: 110px; height: 23px">
This is my body</td>
<td style="height: 23px">
This is my body</td>
<td style="height: 23px">
This is my body</td>
</tr>
</thead>
<tbody style="page-break-after: always;">
<tr>