私はBixolon BCD-1000 OPOS Driverをインストールしました。これはASCII文字を印刷できますが、私はキリル文字を印刷する必要があります。 CharacterSet 437(Default Charset)を999(UNICODE)に変更しようとすると、エラーメッセージが返されます。 [1]Microsoft POS C#CharacterSet属性を設定できません。
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();
}
[障害メッセージ]どのように私はこのsitutationを克服することができますか? ありがとう
非常に良い質問:P – albatross