javascript - js mobile printing by APD -
im use zebra imz320 mobile printer , mc3110 (wm). use bluetooth connection. js code is:
function print(str) { var printerid = 'bz:1|0022583cbd61'; apd.psexternal(261, printerid); apd.psexternal(270, ""); str = '^xa^mmt^pw559^ll050^ls0^ft27,40^a@n,15,15,tt0003m_^fh^ci28^fh^fdАБВГДЕЁЖЗИКЛМНОПРСТУФХТЦЧШЩЬЪЭЮЯабвгдеёжзиклмнопрстуфхтцчшщьъэюя^fs^ci0^pq1,0,1,y^xz' apd.psexternalex(266, str); apd.psexternal(271, ""); }
right printing part of string - 'РСТУФХТЦЧШЩЬЪЭЮЯабвгдеёжзиклмноп'
. parts 'АБВГДЕЁЖЗИКЛМНОП'
, 'рстуфхтцчшщьъэюя'
not printing or printing ubnormaly. zebra setup utility zpl command printing right. printing right using rhomobile bluetooth device capability technology
> (send_string('^xa^mmt^pw559^ll050^ls0^ft27,40^a@n,15,15,tt0003m_^fh^ci28^fh^fdАБВГДЕЁЖЗИКЛМНОПРСТУФХТЦЧШЩЬЪЭЮЯабвгдеёжзиклмнопрстуфхтцчшщьъэюя^fs^ci0^pq1,0,1,y^xz'))
. im try print russian symbols use unicode codes of characters in utf-8(like \u04011) not give result.
can me decide task?
Comments
Post a Comment