Пример #1
0
        public string SelectCharacterCodeTable(eCodeTable eCodeTable)
        {
            try
                {
                    char ch = '\0';
                    switch (eCodeTable)
                    {
                        case EscPos_Star_TSP100.eCodeTable.CP437_USA_Standard_Europe:
                            ch = '\x1';
                            break;

                        case EscPos_Star_TSP100.eCodeTable.Katakana:
                            ch = '\x2';
                            break;

                        case EscPos_Star_TSP100.eCodeTable.Codepage_1250:
                            ch = '\x21';
                            break;
                    }
                    if (ch != '\0')
                    {
                        return "";//cSelectCharacterCodeTable + ch;
                    }
                }
                catch (Exception ex)
                {
                    LogFile.Error.Show("ERROR:EscPos:SelectCharacterCodeTable:Exception = " + ex.Message);

                }
                return null;
        }
Пример #2
0
        public string SelectCharacterCodeTable(eCodeTable eCodeTable)
        {
            try
                {
                    char ch = Convert.ToChar((int)eCodeTable);
                    return cSelectCharacterCodeTable + ch;
                }
                catch (Exception ex)
                {
                    LogFile.Error.Show("ERROR:EscPos:SelectCharacterCodeTable:Exception = " + ex.Message);

                }
                return null;
        }