1、核心函数调用function printTable(printName) { var LODOP = getLodop(); //初始化打印任务 LODOP.PRINT_INITA('8mm', '8mm', '194mm', '280mm', printName); //设置页面尺寸 LODOP.SET_PRINT_PAGESIZE(1, '210mm', '1000mm', ""); LODOP.SET_PRINT_STYLE('ItemType', 1); //LODOP.ADD_PRINT_HTM(1,5,400,100,"总页号:第##页/共##页"); LODOP.SET_PRINT_STYLE('ItemType', 0); var strBodyStyle=""; LODOP.ADD_PRINT_HTM(0, 0, "190mm", "276mm", strBodyStyle + document.getElementById("print-parent").innerHTML); //LODOP.PREVIEW(); LODOP.PRINT(); }
2、lodop文档网址