as the subject, I have a POS printer MatrixPoint MP-3250. As the manual said it is support command: ESC/POS compatible
I do search google, tried but won't works. At least setting condensed fonts, bold, italic and cutting paper command.
Running specifications:
Please help me out, any comments will appreciate.
I tried using this ESC/POS manual.
EDIT.
Here is how:
function WriteToPrinter(const Data: string): DWord;
var Temp: AnsiString;
begin
// write directly to printer device
{ ----
Note:
This method is also able to send Escape command sequences directly,
so you're no longer need to call Win32 API complicated Escape() function.
}
// We need convert to raw string since I'm using Delphi XE
// string = UnicodeString
Temp := AnsiString(Data);
Result := 0;
if (fPrnStatus = rpsPageStarted) then
WritePrinter(fPrnHandle, PAnsiString(Temp), Length(Temp), Result);
end;
WriteToPrinter(#27'@'); // init printer
WriteToPrinter(#27'S'); // normal mode?
WriteToPrinter('Printing to default printer.'); // data
WriteToPrinter('GSV0'); // Cut the paper
What we got on printed paper: OWOTOFTPrinting to default printer (strange characters appear)
The paper failed to cut (notting happend)
EDIT: Mostly forgot, the above stuff working fine on Epson compatible / IBM 9068A Passbook Printer (Dot matrix). (not sure) the printer connected directly to USB / Parallel port, not using adapter (Parallel to USB like now).
I supposed something wrong in/between this adapter, or its drivers?
Thank you
Case closed. My final suspect was right, the problem was BAFO - Parallel to USB adapter. Siggh, I spending a lot of time because of this semi working adapter (incompatible). By replacing with another type/branch adapter it is now works fine.
Thank you to all contributors