如题~!如果需要什么组件 希望各位大虾传给我 邮箱 :[email protected] 先谢过
解决方案 »
- 如何获取用户选择的是哪个radio
- webForm的aspx页面显示问题
- 高手们帮帮忙
- datalist复杂点的绑定数据
- 导入execl表中的数据到sqlserver 2005中
- SQLSever2005数据库连接问题
- .net 2005 的GridView 的模板列中,如何取得当前行?
- webForm中页面下方有空白!
- .resx是什么文件,有什么作用
- 怎么样将两个DataSet加起来
- 关于dropdownlist的SelectedIndexChanged事件无法触发!
- 请教一个ASP.NET中,AjaxControlToolkit里的AutoCompleteExtender控件的问题!在线等!
http://www.soidc.net/discuss/5/060531/08/448551_1.html
网上有毛的直接的答案
猪头,喊哥哥
使用div将要显示的数据显示出来,就可以进行套打了。。
<%@ Control Language="c#" AutoEventWireup="false" Inherits="FLX.Portal.PageModeTemplate" %>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style><html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--media=print 这个属性可以在打印时有效-->
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style> <style>
.tdp
{
border-bottom: 1 solid #000000;
border-left: 1 solid #000000;
border-right: 0 solid #ffffff;
border-top: 0 solid #ffffff;
}
.tabp
{
border-color: #000000 #000000 #000000 #000000;
border-style: solid;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 1px;
border-left-width: 1px;
}
.NOPRINT {
font-family: "宋体";
font-size: 9pt;
}
</style>
<script>
//按钮事件
var directPrint = function(){
pagesetup_null();
document.all.WebBrowser.ExecWB(6,6);
}
//设置网页打印的页眉页脚为空
function pagesetup_null(){
var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
try{
var RegWsh = new ActiveXObject("WScript.Shell");
hkey_key="header";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
hkey_key="footer";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
}catch(e){}
}
</script>
</head>
<body >
<center class="Noprint" >
<p>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<div id="div1">
<input type=button name="打印" value="打印" style="font-size: 9pt; min-width:15px; min-height:10px" onclick="directPrint()" id="Button1" />
</div>
</p>
</center>
<div class="page">
<table id="Table_01" width="780" height="360" border="0" cellpadding="0" cellspacing="0">
<tr><td width="931" style="position:relative; padding:inherit; "><div id="Layer2" align="center" style="position:absolute; left:57px; top:98px; width:55px; height:20px; z-index:2;">FEKPO</div>
<div id="Layer6" style="position:absolute; left:450px; top:72px; width:119px; height:23px; z-index:6; vertical-align:middle" align="center">一星期内有效</div>
<div id="Layer9" style="position:absolute; left:95px; top:276px; width:153px; height:24px; z-index:9;" align="left">7188881131464</div>
<table width="98%" align="center" runat="server" height="" style="position:absolute; top:134px; left: 62px; width: 686px;">
<tr>
<td width="106" align="left" height="20" >北京 FOR </td>
<td width="54" height="20" align="center" >王世鹏</td>
<td width="40" height="20" align="center" >C10</td>
<td height="20" width="44" align="center" >A级</td>
<td height="20" width="65" align="center" >2008-03-21</td>
<td height="20" width="34" align="center" >09:00</td>
<td height="20" width="147" align="center" >高级/高等</td>
<td height="20" width="57" align="center" >2008-03-21</td>
<td height="20" width="55" align="center" >2008-03-27</td>
<td height="20" width="40" >无任何行李</td>
</tr>
</table>
<div id="Layer10" style="position:absolute; left:98px; top:314px; height:19px; z-index:10; width: 62px;" align="center">086</div>
<div id="layer9" style="position:absolute; left:247px; top:315px; height:18px; z-index:10; width: 260px;" align="center">纵横天地电子商旅公司</div>
<div id="layer" align="center" style="position:absolute; left:684px; top:273px; width:63px; height:24px; z-index:2;">40.00¥</div>
<div id="layer2" align="left" style="position:absolute; left:203px; top:73px; width:203px; height:20px; z-index:2;">421023198409102978</div>
<div id="layer3" style="position:absolute; left:272px; top:281px; height:19px; z-index:10; width: 67px;" align="center">APKS</div>
<div id="layer4" align="center" style="position:absolute; left:57px; top:72px; width:55px; height:20px; z-index:2;">方信</div>
<div id="layer5" align="center" style="position:absolute; left:403px; top:277px; width:55px; height:24px; z-index:2;">无</div>
<div id="layer6" align="center" style="position:absolute; left:643px; top:308px; width:85px; height:24px; z-index:2;">2008-03-21</div>
<table width="98%" align="center" runat="server" height="" style="position:absolute; top:252px; left: 190px; width: 556px; height: 21px;">
<tr>
<td width="102" align="left" height="20" >1000.00¥</td>
<td width="91" height="20" align="center" >90.00¥</td>
<td height="20" width="90" align="center" >70.00¥</td>
<td height="20" width="100" align="center" >40.00¥</td>
<td height="20" width="149" align="center" >1200.00¥</td>
</tr>
</table></td></tr>
</table>
</div> </body>
</html>
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=31445 C#中,打印panel
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=17969 Asp.net 水晶报表之打印和导出格式
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=30670 ASP.NET 页面打印与预览
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=31368 网页的横向打印的三种方案
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=28333 打印网页中定义的部分内容
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=22916 Web页面打印技术
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=22305 在ASP.NET中打印表格
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=20749 CSS实现不同的打印和屏幕显示结果
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=22006
javascript中几种操作打印的方法
该文章转载自德仔工作室:http://www.dezai.cn/Article_Show.asp?ArticleID=18804