Пример #1
0
        private void btnPrintTwoNormal_Click(object sender, System.EventArgs e)
        {
            try
            {
                // replace ESC with Char(27) and add a CRLF to the end
                string text = TextToPrint.Text.Replace("ESC", ((char)27).ToString()) + "\x1B|1lF";

                _printer.PrintTwoNormal(CurrentStation, text, "");
            }
            catch (Exception ae)
            {
                ShowException(ae);
            }
        }