无法使用VB .NET在TM-U220B打印机中打印特定的ascii代码 [英] Unable to print a particular ascii codes in TM-U220B printer using VB .NET

查看:60
本文介绍了无法使用VB .NET在TM-U220B打印机中打印特定的ascii代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试在收据打印机上的发票上打印总计(Epson TM-U220B)

我需要打印符号(¢)但打印机正在打印不同的符号。





打印(总计:&¢& Decimal.Parse(FRMFacturacion.txtTotal.Text).ToString (###,###。00)。PadLeft(9))

打印(Paga con:&¢& Decimal.Parse(FRMFacturacion.TxtPagaCon.Text) ).ToString(###,###。00)。PadLeft(9))

打印(Su Vuelto:&¢& Decimal.Parse(FRMFacturacion。 TxtSuVuelto.Text).ToString(###,###。00)。PadLeft(9))



我尝试了什么:



我尝试了不同的ASCII代码,如(155,0162,189)同样的问题。

我尝试过更改为通用驱动程序和打印机的官方驱动程序。

我目前正在使用Microsoft * Windows 7

我也尝试更改打印机上的设置以使用拉丁美洲代码。相同问题

我曾经能够在使用Microsoft * Windows XP os

解决方案

时打印此符号正如我在打印机手册中看到的,您的角色属于PC437- Charset(第0页)或PC860-Charset(第3页)并具有Ascii-Code 155.

因此您应该选择其中一个字符集(在打印机内)并使用chr打印字符(155 )而不是

¢





你试过这样的吗?



补充:

要在Charsets(和许多其他东西)之间切换,你应该使用ESC / POS命令的FAQ。在这里您可以找到不同的序列。



https://www.google.de/url?sa=t&rct=j& ; q =&安培; ESRC = S&安培;源=纸幅放大器; CD = 2及VED = 0ahUKEwiM1Jnp2a7TAhXqDZoKHZGbD7MQFggvMAE&安培; URL = HTTPS%3A%2F%2Ffiles.support.epson.com%2Fpdf%2Fpos%2Fbulk%2Ftm-u220_trg_en_std_reve.pdf&安培; USG = AFQjCNFt1Km8lnAHvRfMXxbJYlg3mJ9_fw&安培; CAD = RJA


Hello, I am trying to print the totals on an invoice on a receipt printer (Epson TM-U220B)
I need to print the symbol (¢) but the printer is printing a different symbol.


Print(" Total: " & "¢ " & Decimal.Parse(FRMFacturacion.txtTotal.Text).ToString("###,###.00").PadLeft(9))
Print(" Paga con: " & "¢" & Decimal.Parse(FRMFacturacion.TxtPagaCon.Text).ToString("###,###.00").PadLeft(9))
Print(" Su Vuelto: " & "¢ " & Decimal.Parse(FRMFacturacion.TxtSuVuelto.Text).ToString("###,###.00").PadLeft(9))

What I have tried:

I have tried different ASCII codes like (155, 0162, 189) same issue.
I have tried changing to generic driver and official driver of printer.
I am currently using Microsoft* Windows 7
I also tried changing the settings on the printer to use latin-america codes.same issue
I used to be able to print this symbol when using Microsoft* Windows XP os

解决方案

As I have seen in the manual of the printer your character belongs to the PC437-Charset (Page 0) or PC860-Charset (Page 3) and has the Ascii-Code 155.
So you should select one of this charset (inside the printer) and print the character with chr(155) instead of

"¢"



Have you tried it like this ?

Added:
To switch between the Charsets (and many other things) you should use the FAQ for the ESC/POS-Commands. Here you will find the different sequences.

https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0ahUKEwiM1Jnp2a7TAhXqDZoKHZGbD7MQFggvMAE&url=https%3A%2F%2Ffiles.support.epson.com%2Fpdf%2Fpos%2Fbulk%2Ftm-u220_trg_en_std_reve.pdf&usg=AFQjCNFt1Km8lnAHvRfMXxbJYlg3mJ9_fw&cad=rja


这篇关于无法使用VB .NET在TM-U220B打印机中打印特定的ascii代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆