Hello,
I can't find a way to send printer specific language codes to printer.
Part of my code :
String sString = "B50,0,0,3,1,2, 50,B," + "12345678901234 567890";
Font fFont = new Font("Arial", 16);
SolidBrush bBrush = new SolidBrush(Colo r.Black);
PointF pPoint = new PointF(150.0F, 150.0F);
ev.Graphics.Dra wString(sString , fFont, bBrush, pPoint);
First part of the sString should tel my printer to print a barcode. But all
I get is the whole sString contens printed out as-it-is.
I assume the problem is that I send graphical representation of sString to
printer and not a sequence of characters.
Should I try Streams or ......?????
Printer is Eltron TLP2046 BarCode Printer
thx,
Damijan the Puzzled
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
I can't find a way to send printer specific language codes to printer.
Part of my code :
String sString = "B50,0,0,3,1,2, 50,B," + "12345678901234 567890";
Font fFont = new Font("Arial", 16);
SolidBrush bBrush = new SolidBrush(Colo r.Black);
PointF pPoint = new PointF(150.0F, 150.0F);
ev.Graphics.Dra wString(sString , fFont, bBrush, pPoint);
First part of the sString should tel my printer to print a barcode. But all
I get is the whole sString contens printed out as-it-is.
I assume the problem is that I send graphical representation of sString to
printer and not a sequence of characters.
Should I try Streams or ......?????
Printer is Eltron TLP2046 BarCode Printer
thx,
Damijan the Puzzled
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
Comment