QRCode最多能放181个汉字:
LODOP.ADD_PRINT_BARCODE(248,6,60,60,"QRCode","一二三四五六七八九十二二三四五六七八九十三二三四五六七八九十四二三四五六七八九十五二三四五六七八九十六二三四五六七八九十七二三四五六七八九十八二三四五六七八九十九二三四五六七八九十十二三四五六七八九十一二三四五六七八九十二二三四五六七八九十三二三四五六七八九十四二三四五六七八九十五二三四五六七八九十六二三四五六七八九十七二三四五六七八九十八二三四五六七八九十一");
62个汉字的时候会变大一次:
LODOP.ADD_PRINT_BARCODE(248,6,60,60,"QRCode","一二三四五六七八九十二二三四五六七八九十三二三四五六七八九十四二三四五六七八九十五二三四五六七八九十六二三四五六七八九十一");
14个汉字的时候会变小:
LODOP.ADD_PRINT_BARCODE(248,6,60,60,"QRCode","一二三四五六七八九十一二三四");
项目中使用
LODOP.ADD_PRINT_HTM(0, 0, '100%', '100%', htmlStr1); //打印html模式
//LODOP.ADD_PRINT_BARCODE(0,0,120,120,"QRCode","一二三四五六七八九十一二三四"); //打印二维码,不支持打印html
//LODOP.ADD_PRINT_BARCODE(248,6,120,120,"QRCode", htmlStr1);
问题记录:
1.可否支持打印html和二维码一起的呢?
2.设置容错率:
new QRCode(document.getElementById('qrcode_'+i),this.qrCodeList[i], {errorCorrectionLevel: 'H'} );