2013年6月9日 星期日

JS print 的設定參數

<script type="text/javascript">
  window.print();
  if(window.print)
  {
    factory.printing.header = ""
    factory.printing.footer = ""
    factory.printing.portrait =false
    factory.printing.leftMargin = 0
    factory.printing.topMargin = 0
    factory.printing.rightMargin = 0
    factory.printing.bottomMargin = 0
    factory.printing.Print(true);            
  }    
</script>';