Jalil579594

Hello

I have an application (Point of Sales) developed in VB.Net. I need to print receipt

whenever items are sold. To print receipt I am using EPSON Thermal Printer (TM-

T88II Partial Cut). The printer supports only raster font i.e. cpi fonts. For example 15

cpi, 20 cpi, 15 cpi ext etc. But in MSDN of VB.Net it is clearly mentioned that it will

support only true/open type fonts for printing.

How can i print receipt in EPSON printer using VB.Net Please help me.

Thanks

Jalil



Re: Windows Forms General How to print in EPSON Thermal Printer using VB.Net application

nobugz

These kind of printers typically require you to send the printer escape codes directly to the printer, bypassing the printer driver. Check this KB article for the required code. You'll need the printer manual for the escape codes, I found one that appears to apply to your Epson printer. Tough read, not written by a native English speaker...





Re: Windows Forms General How to print in EPSON Thermal Printer using VB.Net application

Jalil

Hello

I would like to thank you to give me the useful KB article. This article helps me a lot. Using the article my printing problem is almost

fixed. But I could not print formatted text. For eaxmple if I want to set font size, bold or regular etc

Again thanks a lot.

Jalil





Re: Windows Forms General How to print in EPSON Thermal Printer using VB.Net application

nobugz

You need to send the escape sequence (starting with 0x1b) to switch modes. The manual I linked shows an example where they are used but doesn't document them. Try contacting Epson for a better manual.





Re: Windows Forms General How to print in EPSON Thermal Printer using VB.Net application

Mgrondin345

Hi.

I am programming in c# but you guys are speaking exactly about the problem I am struggling with.

I have read the KB article. I use the class in this article to try sending raw data to the printer.

For some reason i can't get a simple escape sequence through.

this is from the Epson ESC/POS guide :

LF

[Name] Print and line feed

[Format] ASCII LF

Hex 0A

Decimal 10

[Description] Prints the data in the print buffer and feeds one line based on the current line spacing.

ESC d n

[Name] Print and feed n lines

[Format] ASCII ESC d n

Hex 1B 64 n

Decimal 27 100 n

[Range] 0 n 255

[Default] Prints the data in the print buffer and feeds n lines.

Using the class in the kb article I've been trying to send one of these to the printer without any luck.

Could you show me a code sample on how this is done

Any help would be great there is no support from Epson that make sense and lots of people seem to be having this same problem.

Math