asp.net怎么实现套打

qqhahazxxqq 2009-02-20 03:38:55
如题~!如果需要什么组件 希望各位大虾传给我 邮箱 :qqhahazxxqq@126.com 先谢过
...全文
384 32 打赏 收藏 转发到动态 举报
写回复
用AI写文章
32 条回复
切换为时间正序
请发表友善的回复…
发表回复
db385208309 2010-08-12
  • 打赏
  • 举报
回复
你的解决了不???,,我也在找套打。。悲剧。。。
空心兜兜 2009-03-02
  • 打赏
  • 举报
回复
原来是这样- -
陌上花花 2009-03-02
  • 打赏
  • 举报
回复
可惜不能给你帮助了
chenmingjsw 2009-03-02
  • 打赏
  • 举报
回复
路过,帮顶
qqhahazxxqq 2009-03-02
  • 打赏
  • 举报
回复
都几天了 还是没答案。。。郁闷
ppp7p 2009-02-24
  • 打赏
  • 举报
回复
新词,终于知道什么是套打。
德仔 2009-02-24
  • 打赏
  • 举报
回复
web打印/套打
该文章转载自德仔工作室: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
虞汶霖 2009-02-24
  • 打赏
  • 举报
回复
路过..........
qqhahazxxqq 2009-02-24
  • 打赏
  • 举报
回复
[Quote=引用 22 楼 fly_to_the_winds 的回复:]
猪头,还没弄出来啊?O(∩_∩)O哈哈~,以后大家喊楼主猪头的我赏100分~~
[/Quote]
汗~! 不要打扰哥哥我问问题~!
s77108887 2009-02-23
  • 打赏
  • 举报
回复
用报表实现,easy
浮生若梦丶 2009-02-23
  • 打赏
  • 举报
回复
猪头,还没弄出来啊?O(∩_∩)O哈哈~,以后大家喊楼主猪头的我赏100分~~
Roc_Lee 2009-02-23
  • 打赏
  • 举报
回复
其实就是个报表,帮顶
hangang7403 2009-02-23
  • 打赏
  • 举报
回复
up
weir55 2009-02-23
  • 打赏
  • 举报
回复
http://files.cnblogs.com/slave2/PointPrint.rar
xutao888 2009-02-23
  • 打赏
  • 举报
回复
我当初也是搞的DIV一个一个字用尺子比出来的,搞死了
qqhahazxxqq 2009-02-23
  • 打赏
  • 举报
回复
谢谢各位~!再加100分 希望大家多给点实现方法 我好做参考 呵呵~!
pt1314917 2009-02-21
  • 打赏
  • 举报
回复
[Quote=引用楼主 qqhahazxxqq 的帖子:]
如题~!如果需要什么组件 希望各位大虾传给我 邮箱 :qqhahazxxqq@126.com 先谢过
[/Quote]

使用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>


wonsoft 2009-02-21
  • 打赏
  • 举报
回复
补充一下,套打其实很简单,你设计好格式 ,然后把印刷好的部分在打印时不显示即可。
wonsoft 2009-02-21
  • 打赏
  • 举报
回复
就用VS。NET中的水晶报表嘛。
qqhahazxxqq 2009-02-21
  • 打赏
  • 举报
回复
就没有人做过么?做过的冒个泡啊
加载更多回复(12)

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧