1、错误描述
Uncaught TypeError: Cannot read property 'PRINT_INIT' of undefined user:100
CreateOneFormPage @ user:100
print @ user:91
click @ user.js:332
d.click @ jquery-ui.min.js:97
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
2、错误原因
var LODOP;
var print = function() {
printPage();
LODOP.PRINT();
};
var printPage= function(){
LODOP=getLodop();
LODOP.PRINT_INIT("用户表");
LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Auto-Width");
LODOP.SET_PRINT_STYLE("FontSize",12);
LODOP.SET_PRINT_STYLE("FontFamily","微软雅黑");
LODOP.SET_PRINT_STYLE("Bold",0);
LODOP.ADD_PRINT_HTM(50,10,"100%","100%",document.getElementById("user").innerHTML);
};
点击打印时出现上述提示
3、解决办法
由于没有安装LODOP打印插件,导致报错;下载CLodop_Setup_for_Win32NT_2.062.exe并安装