打印的怪事:只能预览和打印第一页
下面这个网页显示出来的数据只能预览和打印一页,真时怪事,请高人指点指点。谢谢!!
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="print_card.aspx.cs" Inherits="admin_print_card" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>打印</title>
<style type="text/css">
td {
font-size:12px;
}
</style>
</head>
<body>
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Repeater ID="ShowPrintList" runat="server">
<ItemTemplate>
<div style="float: left; width: 240px; height:192px; margin: 2px;">
<table width="240" cellpadding="0" cellspacing="0" border="1">
<tr>
<td style="height:40;" colspan="2" align="right"><table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="height:40; width:71px;" align="right">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/logo1.jpg" /></td>
<td style="font-weight:bold; width:169px; font-size:16px; padding-top:7px; padding-left:3px;" align="left">卡片</td>
</tr>
</table></td>
</tr>
<tr style="height:20px;">
<td style="width:80px;" align="center">产品名称</td>
<td style="width:170px; padding-left:8px;"><%#Eval("ProductName")%></td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:Repeater>
</td>
</tr>
</table>
</body>
</html>