java - Socket print to Toshiba B-SA4TM -


i should print barcode labels toshiba b-sa4tm printer. have found code snippet print directly socket can't figure out how should pass commands. have example please.

thank much.

kindly elvisd

the problem understand how commands composed. have found it. here example:

string s = "{d0920,0870,0800,0900|}"+ //                                           "{ax;+000,+000,+00|}"+ //                                "{ay;+01,1|}"+ //                                   "{c|}"+//     "{pv01;0350,0010,0025,0060,j,11,b=article desc 1|}"+//     "{pv02;0295,0010,0025,0060,j,11,b=desc2|}"+//     "{pv03;0240,0010,0020,0032,j,11,b=qty|}"+//     "{pv04;0200,0010,0020,0032,j,11,b=exp|}"+//     "{pv05;0160,0010,0020,0032,j,11,b=lot|}"+//     "{pv06;0240,0100,0030,0040,j,11,b=12x|}"+//     "{pv07;0200,0100,0030,0040,j,11,b=2012.12|}"+//     "{pv08;0160,0100,0030,0040,j,11,b=lot12345|}"+//     "{pv09;0100,0010,0030,0040,j,11,b=keep cool|}"+//     "{pv10;0050,0010,0020,0032,j,11,b=ste|}"+//     "{pv11;0020,0010,0020,0032,j,11,b=sto|}"+//     "{xs;i,0001,0002c6011|}";  socket prtsocket = new socket(printerhost, port); dataoutputstream outtoprt = new dataoutputstream(prtsocket.getoutputstream()); outtoprt.writebytes(s); prtsocket.close(); 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -