0

I bought the Xprinter model XP-58H, which comes with a drawer. I have checked this link but it uses COM port, while mine is USB/Bluetooth. Is there any way I could send a command to open the drawer? I'm using Delphi 10.2.

i use code but it just print.

procedure TForm1.Button2Click(Sender: TObject);
var
  i: Integer;
  lst: TextFile;
begin
  AssignPrn(lst);
  Rewrite(lst);
  try
    Write(lst, #27#112#0#150#250);

  finally
    CloseFile(lst);
  end;
end;
2
  • 3
    A "COM port" does not contradict the use of the device via a USB/Bluetooth interface. Commented Jan 8, 2024 at 13:00
  • 2
    What does the documentation say on how to send data to the printer? Commented Jan 8, 2024 at 13:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.