WEB免费打印控件推荐 http://fxz-2008.iteye.com/blog/549386
1.分页代码:
LODOP.SET_PRINT_PAPER(0,0,700,400,"打印控件功能演示_Lodop功能_文本居中二");
//参数:整页上边距,整页左边距,可视宽度,可视高度
LODOP.ADD_PRINT_TEXT(415,344,70,25,"第#页/共&页");//在页面最下面显示第1页/共1页
LODOP.SET_PRINT_STYLEA(1,"ItemType",2);
LODOP.SET_PRINT_STYLEA(1,"HOrient",2);
2.打印部分内容:
LODOP.ADD_PRINT_HTM(90,5,640,300,strCenterStyle+document.getElementById("printEl").innerHTML);
//打印纸张上边距,左边距空5px,打印区域宽度,高度。strCenterStyle="