예제 #1
0
        /// <summary>
        /// 打印机初始化
        /// </summary>
        /// <returns></returns>
        public int PrinterInite()
        {
            int error = 0;

            if (tcpClient.Client.Connected)
            {
                byte[] data = PrintCommand.Inite();

                try
                {
                    tcpClient.Client.Send(data);
                    error = 0;
                }
                catch (Exception ex)
                {
                    error = 2;
                }
            }
            return(error);
        }
 public byte[] Init()
 {
     return(PrintCommand.Inite());
 }