public string SelectAnInternationalCharacterSet(eCharacterSet eSet)
        {
            try
                {
                char ch = Convert.ToChar((int)eSet);
                return cSelectAnInternationalCharacterSet + ch;
                }
                catch (Exception ex)
                {
                    LogFile.Error.Show("ERROR:EscPos:SelectAnInternationalCharacterSet:Exception = " + ex.Message);

                }
                return null;
        }
Beispiel #2
0
 internal void wr_SelectAnInternationalCharacterSet(eCharacterSet eSet)
 {
     string buffer = null;
     if (print_ESC_POS_device==null)
     {
         return;
     }
     if (print_ESC_POS_device is EscPos_RP80)
     {
         switch (eSet)
         {
             case eCharacterSet.Slovenia_Croatia:
                 buffer = ep_RP80.SelectAnInternationalCharacterSet(EscPos_RP80.eCharacterSet.Slovenia_Croatia); // "\x1b\x1d\x61\x1";             //Center Alignment - Refer to Pg. 3-29
                 //buffer = buffer + "\x5B" + "If loaded.. Logo1 goes here" + "\x5D\n";
                 buffer += ep_RP80.SelectCharacterCodeTable(EscPos_RP80.eCodeTable.WCP1250_Central_Europe);
                 Print(buffer);
                 break;
             case eCharacterSet.USA:
                 buffer = ep_RP80.SelectAnInternationalCharacterSet(EscPos_RP80.eCharacterSet.USA) + ep_RP80.SelectCharacterCodeTable(EscPos_RP80.eCodeTable.CP437_USA_Standard_Europe);
                 Print(buffer);
                 break;
         }
     }
     else if (print_ESC_POS_device is EscPos_RP58)
     {
         switch (eSet)
         {
             case eCharacterSet.Slovenia_Croatia:
                 return;
                 //buffer = ep_RP58.SelectAnInternationalCharacterSet(EscPos_RP58.eCharacterSet.Slovenia_Croatia); // "\x1b\x1d\x61\x1";             //Center Alignment - Refer to Pg. 3-29
                 ////buffer = buffer + "\x5B" + "If loaded.. Logo1 goes here" + "\x5D\n";
                 //buffer += ep_RP80.SelectCharacterCodeTable(EscPos_RP80.eCodeTable.WCP1250_Central_Europe);
                 //Print(buffer);
                 //break;
             case eCharacterSet.USA:
                 buffer = ep_RP58.SelectAnInternationalCharacterSet(EscPos_RP58.eCharacterSet.USA) + ep_RP58.SelectCharacterCodeTable(EscPos_RP58.eCodeTable.CP437_USA_Standard_Europe);
                 Print(buffer);
                 break;
         }
     }
     else if (print_ESC_POS_device is EscPos_Star_TSP100)
     {
         switch (eSet)
         {
             case eCharacterSet.Slovenia_Croatia:
                 buffer = ep_Star_TSP100.SelectAnInternationalCharacterSet(EscPos_Star_TSP100.eCharacterSet.Slovenia_Croatia); // "\x1b\x1d\x61\x1";             //Center Alignment - Refer to Pg. 3-29
                 //buffer = buffer + "\x5B" + "If loaded.. Logo1 goes here" + "\x5D\n";
                 buffer += ep_Star_TSP100.SelectCharacterCodeTable(EscPos_Star_TSP100.eCodeTable.Codepage_1250);
                 Print(buffer);
                 break;
             case eCharacterSet.USA:
                 buffer = ep_Star_TSP100.SelectAnInternationalCharacterSet(EscPos_Star_TSP100.eCharacterSet.USA) + ep_RP58.SelectCharacterCodeTable(EscPos_RP58.eCodeTable.CP437_USA_Standard_Europe);
                 Print(buffer);
                 break;
         }
     }
 }