当前位置: 代码迷 >> 综合 >> lodop 打印分页头 内容 页脚
  详细解决方案

lodop 打印分页头 内容 页脚

热度:22   发布时间:2023-11-25 00:05:56.0

//表格自动分页,下一页没页头、页脚、表头
LODOP.ADD_PRINT_HTM(0,"2.5%","95%","100%",document.getElementById("print").innerHTML);
 
//表格自动分页,下一页有页头、页脚、表头  
//内容   
LODOP.ADD_PRINT_TABLE(150,"2.5%","95%","60%",document.getElementById("div2").innerHTML);
LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
 
//页头   
LODOP.ADD_PRINT_HTM(20,"2.5%","95%",120,document.getElementById("div1").innerHTML);
LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);
 
//页脚    
LODOP.ADD_PRINT_HTM(424,"2.5%","95%",54,document.getElementById("div3").innerHTML);
LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);