lodop打印分页方法(转)

依然范特西╮ 提交于 2020-03-17 11:52:05


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

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);

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!