有点绕的方案:
1.目前佳博打印机公司没有提供网页端封装库,其技术支持推荐:第三方的Web打印控件,http://www.lodop.net/
2.第二种方案,是借用天津国聚打印机公司的TSC activeX库,按照其封装库开发代码
http://www.tscprinters.com.cn/html/technology/technology03.htm
http://www.tscprinters.com.cn/html/technology/technology03_2.htm
201651015422011E169896aE169896E.pdf
3.个人尝试在PC端调用国聚的dll,往佳博打印机送数据,测试通过;所以理论上网页端也可以打印
int status = TSCLIB_DLL.openport("Gprinter A83I(标签)");
status = TSCLIB_DLL.setup("50", "30", "4", "8", "0", "2", "2");
status = TSCLIB_DLL.clearbuffer();
status = TSCLIB_DLL.sendcommand("QRCODE 44, 5, Q, 4, A, 0, M2, S7,\"16830a0e17d768020939f963bbfbd555\"");
status = TSCLIB_DLL.printlabel("1", "1");
status = TSCLIB_DLL.closeport();
参考网页:http://happyqing.iteye.com/blog/2220796