是不是在打印的时候可以设置,我也只会用window.print(),
好像有别的控件,去找找吧

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <META http-equiv=Content-Type content="text/html; charset=gb2312">
    <META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
    <BODY><OBJECT id=factory style="DISPLAY: none" 
    codeBase=http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,60,0,360 
    classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 viewastext></OBJECT><SCRIPT defer>function window.onload() 
    {
      factory.printing.header = "来自[孟宪会之精彩世界]  (自定义页眉)"  factory.printing.footer = "欢迎再次来到[孟宪会之精彩世界]  (自定义页脚)"  factory.printing.leftMargin = 0.75  factory.printing.topMargin = 1.5  factory.printing.rightMargin = 0.75  factory.printing.bottomMargin = 1.5
      }</SCRIPT><P><INPUT onclick=factory.printing.Print(false) type=button value=打印本页> <INPUT onclick=factory.printing.PageSetup() type=button value=页面设置> <INPUT onclick=factory.printing.Preview() type=button value=打印预览> <BR><A 
    href="http://www.meadroid.com/scriptx/docs/printdoc.htm?static" 
    target=_blank>具体使用手册,更多信息,点这里</A></P></BODY>
    </HTML>