lodop 打印格式

  • Post author:
  • Post category:其他


//表格自动分页,下一页没页头、页脚、表头

LODOP.ADD_PRINT_HTM(10,”5%”,”90%”,”90%”,document.getElementById(“print”).innerHTML);

//表格自动分页,下一页有页头、页脚、表头

LODOP.ADD_PRINT_TABLE(160,”5%”,”90%”,”60%”,document.getElementById(“print-bodyer”).innerHTML);

LODOP.SET_PRINT_STYLEA(0,”Vorient”,3);

//页头

LODOP.ADD_PRINT_HTM(30,”5%”,”90%”,120,document.getElementById(“print-header”).innerHTML);

LODOP.SET_PRINT_STYLEA(0,”ItemType”,1);

LODOP.SET_PRINT_STYLEA(0,”LinkedItem”,1);

//页脚

LODOP.ADD_PRINT_HTM(444,”5%”,”90%”,54,document.getElementById(“print-footer”).innerHTML);

LODOP.SET_PRINT_STYLEA(0,”ItemType”,1);

LODOP.SET_PRINT_STYLEA(0,”LinkedItem”,1);