Exemple #1
0
 private void btnValidateData_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.ValidateData(CurrentStation, text);
     }
     catch (Exception ae)
     {
         ShowException(ae);
     }
 }