private void btnPrintImmediate_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.PrintImmediate(CurrentStation, text); } catch (Exception ae) { ShowException(ae); } }