Recent

Author Topic: Print an image when printer in raw mode.  (Read 30487 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Print an image when printer in raw mode.
« Reply #15 on: July 21, 2011, 11:43:04 am »
Here's a link to:

Sending a bit image to an Epson TM-T88III receipt printer using C# and ESC/POS

http://nicholas.piasecki.name/blog/2009/12/sending-a-bit-image-to-an-epson-tm-t88iii-receipt-printer-using-c-and-escpos/

In case it might be of help.

Roosters

  • New Member
  • *
  • Posts: 16
Re: Print an image when printer in raw mode.
« Reply #16 on: July 21, 2011, 12:51:57 pm »
Bigchimp, this is what I was using

 var myPrinter: TextFile;
begin
  assignFile(myPrinter,'com1');
  rewrite(myPrinter);
  writeln(myPrinter, escInitialise );
  writeln(myPrinter,'Hello world!');
  writeln(myPrinter,escFeedAndCut);
  closeFile(myPrinter);
end;

It only worked once.

Elmug :-

I have started to use similar code to what you posted, it works, but I still had problems, most notably the cutting of the paper, it would cut in the middle of text, I've also issues printing certain characters (the British pound £).

I've now sorted this out, and things have progressed a little, I will post then full code when I'm satisfied it works correctly.  I've also come across one other possible way of doing this using the print driver, If I get that to work, will also post that code.

Can't post the examples at the moment as the source is on the machine connected to the printer, this is in our other premises 5 miles away.

Thanks for all your help.

 

TinyPortal © 2005-2018