我安装了Bixolon BCD-1000 OPOS Driver.It可以打印ASCII字符;但是我必须打印西里尔字符。当我尝试将CharacterSet 437(默认字符集)更改为999(UNICODE)时,它返回错误消息。 [故障信息] [1]
public void DisplayStringOnPort(string line)
{
PosExplorer posExplorer = new PosExplorer();
DeviceInfo receiptPrinterDevice = posExplorer.GetDevices()[0];
var list = posExplorer.GetDevices();
foreach(DeviceInfo x in list)
{
if(x.ServiceObjectName.Equals("BCD-1000"))
{
receiptPrinterDevice = x;
}
}
LineDisplay printer = posExplorer.CreateInstance(receiptPrinterDevice) as LineDisplay;
printer.Open();
printer.Claim(1000);
string str = "Кирилица";
printer.CharacterSet = 999; // Unicode Fault Message
printer.DeviceEnabled = true;
printer.DisplayTextAt(2, 1, text);
printer.Close();
}
我怎样才能克服这种情绪? 感谢