Using a POS-printer (EPSON TM-U210B) in Delphi-app.
Posted on 2001-08-16
I am developing an application that uses the EPSON TM-U210B printer. This is a POS-printer (POS=Point Of Sales).
On the EPSON-website, I have found the specific driver and also some example source code to access the printer's functions.
However, these examples are written in Visual Basic.
For example, the printer has a special function to cut off the paper. In VB the code is like:
Printer.FontSize = 10
Printer.FontName = "control"
OK, I have tried to translate this into Delphi-code by using these lines:
with Printer do
Canvas.Font.Size := 10;
Canvas.Font.Name := 'control';
However, this is not working very well. Maybe I made a big mistake by trying to translate the VB-code without asking any help to you guys...
Furthermore, by using the canvas it seems like the printer is very fast running out of memory. Someway it is only possible to add about 20 lines into the canvas-text, or it will delete the last (few) lines.
I hope there is someone who can help me with this.
If you need to have some additional information, please ask!
Thank you in advance.