Ejemplo n.º 1
0
        public static int printerInternalImpStart()
        {
            printerStop();
            int result = Termica.AbreConexaoImpressora(6, "M8", "", 0);

            return(result);
        }
Ejemplo n.º 2
0
        public static int printerExternalImpStart(Dictionary <string, string> dictionary)
        {
            printerStop();
            String ip   = (String)dictionary["ip"];
            int    port = Int32.Parse(dictionary["port"]);

            try
            {
                int result = Termica.AbreConexaoImpressora(3, "I9", ip, port);

                return(result);
            }
            catch (Exception e)
            {
                return(printerInternalImpStart());
            }
        }