Print negative line DPP-450 Datecs Escpos

Asked

Viewed 51 times

0

I’m starting a project on this printer (DPP-450), and I came across a problem that I’m unable to solve:

I need to print a negative line, black background and blank writing. In the manual this "GS B" as the code for this, however I can only execute the codes "ESC". I don’t know if there is any way to switch between GS/ESC, I couldn’t find anything that would help me.

1 answer

0

Hello. ESC actually corresponds to char 27. Currently I use Delphi so the commands that use ESC, are passed like this:

/* Example of bold */ _prNegritoNative : string = #27'E1'; _prNegritoDesativar : string = #27'E0';

So, to pass the GS, which corresponds to char 29, I do this: /* defining barcode width */ _prBarCodeLind : string = #29'w' + '2'; //between 2 and 4

in your case the GS B would be: #29'B' Got it ?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.