2 cheng 004 cheng_004 于 2016.03.08 16:44 提问

TSC 用JNative解析dll打印中文乱码
    JNative sendcommand = new JNative("TSCLIB", "sendcommand");
    sendcommand.setParameter(0,"BAR 300,300,1200,50");
    sendcommand.invoke();
    i = 0;
    JNative barfont = new JNative("TSCLIB", "printerfont");
    barfont.setParameter(i++, "280");
    barfont.setParameter(i++, "100");
    barfont.setParameter(i++, "TSS16");
    barfont.setParameter(i++, "180");
    barfont.setParameter(i++, "2");
    barfont.setParameter(i++, "4");
    barfont.setParameter(i++, "中文打印");
    barfont.invoke();

1个回答

hnxcjsbzzysljf
hnxcjsbzzysljf   2016.10.08 01:36

oke();
i = 0;
JNative barfont = new JNative("TSCLIB", "printerfont");
barfont.setParameter(i++, "280");
barfont.setParameter(i++, "100");
barfont.setParameter(i++, "TSS16");
barfont.setParameter(i++, "180");
barfont.setParameter(i++, "2");
barfont.setParameter(i++, "4");
barfont.setParameter(i++, "中文打印");
barfont.invoke();

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!