delphi - ESC/P programming! -
why need use because printers using tprinter prints weird hieroglyph @ beginning of printable area.
my problem if send commands, nothing happens.
esc e (#27 #69) - sending escape sequence didn't work expected. removed first letter , rest of string made bold. eg. hello -> ello. after changed esc e esc (#27 #69 #27), worked fine. example managed figure out, but...
trying select character table "esc t n" (#27 #116 n), make "õäöü" work. command doesn't work. nothing happens! , command supported esc/p, esc/p 2 , 9-pin esc/p, should work fine.
manual can found here.
if has ever needed use esc/p commands maybe 1 can shed light how work them!
thanks in advance!
edit:
in previous post asked more or less same question though answers how did send commands printer. (i'll change question there according answers!)
i accepted ken's answer, because claimed way transferred commands wasn't best , got work escape command. problem after trying use program printer, didn't work expected, because uses tprinter.begindoc , enddoc.
so must use other solution rob kennedy helped me with!
edit 2:
as turned out, used wrong manual, commands little different (though still supporting esc/p proclaims). thank help!
ps! still have question: need character table where
245 = õ 228 = ä 246 = ö 252 = ü
which iso 8859. in manual there no such character table or similar it. should string manipulation , replace eg 228 132 or know better approuch?
i keep unanswered while, , accept stukelly's answer.
based on previous question, think using wrong commands control epson tm-t70 receipt printer. after research found product brochure , posmicro both mention esc/pos.
the esc/pos command turning bold on , off requires has third value, follows.
ascii esc e n hex 1b 45 n decimal 27 69 n n 0 or 1, turning bold off or on.
here detailed esc/pos reference.
Comments
Post a Comment