CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

信封打印的源码!

楼主zh016(仔仔)2005-01-14 13:28:31 在 Web 开发 / ASP 提问

功能:  
  1.收发人、邮编、地址要手工输入;  
  2.信封打印的尺寸大小可以自由设置;  
  3.最好可以批量打印(根据地址薄),最好是javascript.  
  如果比较好还可以再加分!  
  问题点数:30、回复次数:7Top

1 楼clcy(风雨)回复于 2005-01-14 13:30:37 得分 0

UPTop

2 楼yb2008(中科商务网--ZKE360.COM)回复于 2005-01-14 13:41:54 得分 0

自己更改下!  
   
  在IE中把ACTIVEX控件启用,不然会报错!  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN">  
  <html>  
  <head>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <title>无标题文档</title>  
  <style>  
  @media   print{  
  INPUT   {display:none}  
  }  
  </style>  
  </head>  
   
  <body>  
   
  <TABLE   border="0"   style="font-size:9pt;"   width="300px"   align="center">  
  <THEAD   style="display:table-header-group;font-weight:bold">  
  <TR><TD   colspan="2"   align="center"   style="font-weight:bold;border:3px   double   red">每页都有的表头</TD></TR>  
  </THEAD>  
  <TBODY   style="text-align:center"">  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR   style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR   style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR><TD>表格内容</TD><TD>表格内容</TD></TR>  
  <TR   style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>  
  </TBODY>  
  <TFOOT   style="display:table-footer-group;font-weight:bold">  
  <TR>  
  <TD   colspan="2"   align="center"   style="font-weight:bold;border:3px   double   blue">每页都有的表尾</TD>  
  </TR>  
  </TFOOT>  
  </TABLE>  
  <input   type=button   value="   打     印   "   onclick=javascript:window.print()>  
  </body>  
  </html>  
  Top

3 楼zh016(仔仔)回复于 2005-01-14 15:59:12 得分 0

这个我也会的,  
  老兄我要的是打信封的,格式怎么设?,也没预览。不行  
  我的邮箱:zh016@yahoo.com.cnTop

4 楼yb2008(中科商务网--ZKE360.COM)回复于 2005-01-14 16:07:11 得分 0

你把那个信封的页面设置好,你可以用打印预览看的嘛  
   
  Top

5 楼zh016(仔仔)回复于 2005-01-16 21:18:23 得分 0

晕!  
  搞一个好的来!Top

6 楼zz200898(zz)回复于 2005-01-20 17:16:34 得分 0

retTop

7 楼zz200898(zz)回复于 2005-02-22 11:39:09 得分 30

<!--语言无关   保存成   .HTML   看看-->  
  <html>  
  <head>  
  <meta   name=vs_targetSchema   content="http://schemas.microsoft.com/intellisense/ie5">  
  <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>  
   
  </head>  
   
  <body   >  
  <center   class="Noprint"   >  
      <p>  
      <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)>  
      <input     type=button     value=直接打印     onclick=document.all.WebBrowser.ExecWB(6,6)>  
      <input     type=button     value=页面设置     onclick=document.all.WebBrowser.ExecWB(8,1)>  
  </p>  
      <p>         <input     type=button     value=打印预览     onclick=document.all.WebBrowser.ExecWB(7,1)>  
          <br/>  
          </p>  
      <hr   align="center"   width="90%"   size="1"   noshade>  
  </center>  
   
  <table   width="90%"   border="0"   align="center"   cellpadding="2"   cellspacing="0"     class="tabp">  
  <tr>  
  <td   colspan="3"   class="tdp">第1页</td>  
          </tr>  
  <tr>  
      <td   width="29%"   class="tdp">&nbsp;</td>  
      <td   width="28%"   class="tdp">&nbsp;</td>  
              <td   width="43%"   class="tdp">&nbsp;</td>  
      </tr>  
  <tr>  
      <td   colspan="3"   class="tdp">&nbsp;</td>  
      </tr>  
  <tr>  
      <td   colspan="3"   class="tdp"><table   width="100%"     border="0"   cellspacing="0"   cellpadding="0">  
                  <tr>  
                      <td   width="50%"   class="tdp"><p>这样的报表</p>  
                      <p>对一般的要求就够了。</p></td>  
                      <td>&nbsp;</td>  
                  </tr>  
              </table></td>  
      </tr>  
  </table>  
  <hr   align="center"   width="90%"   size="1"   noshade   class="NOPRINT"   >  
  <!--分页-->  
  <div   class="PageNext"></div>  
  <table   width="90%"   border="0"   align="center"   cellpadding="2"   cellspacing="0"     class="tabp">  
      <tr>  
          <td   class="tdp">第2页</td>  
      </tr>  
      <tr>  
          <td   class="tdp">看到分页了吧</td>  
      </tr>  
      <tr>  
          <td   class="tdp">&nbsp;</td>  
      </tr>  
      <tr>  
          <td   class="tdp">&nbsp;</td>  
      </tr>  
      <tr>  
          <td   class="tdp"><table   width="100%"     border="0"   cellspacing="0"   cellpadding="0">  
                  <tr>  
                      <td   width="50%"   class="tdp"><p>这样的报表</p>  
                              <p>对一般的要求就够了。</p></td>  
                      <td>&nbsp;</td>  
                  </tr>  
          </table></td>  
      </tr>  
  </table>  
  </body>  
  </html>  
   
  <style   media=print>  
  .Noprint{display:none;}  
  .PageNext{page-break-after:   always;}  
  </style>  
  Top

相关问题

  • 信封打印的源码!
  • 求助!!!怎样打印信封?
  • 求JS做web打印的源码……
  • 谁有MsFlexGrid的打印例子源码?
  • 谁有打印7号信封的控件,给我一份。
  • 如何实现打印信封的功能,谢谢!急!!!
  • 如何在Web上 打印之Ems信封套
  • 有关VF打印信封的问题,帮个忙!
  • VB.net中怎样实现信封的打印??在线等!
  • 求关于打印DBGrid和StringGrid数据的源码?谢谢

关键词

  • 表格
  • 内容
  • 表格内容
  • 每页

得分解答快速导航

  • 帖主:zh016
  • zz200898

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo