My Code:
PrintDialog printDia = new PrintDialog(); printDia.PrinterSettings = new PrinterSettings(); DialogResult result = printDia.ShowDialog();
StringBuilder sb = new StringBuilder(); sb.AppendLine("); A"
sb.AppendLine("H0001 );V0001 XM45676567"
sb.AppendLine("Q1" );
sb.AppendLine("Z );"
String output = sb.ToString().Replace("" , ((char)27).ToString());
output.Replace("" ,((char)2).ToString());
output.Replace("" , ((char)3).ToString());
if (result == DialogResult.OK) { RawPrinterHelper.SendStringToPrinter(printDia.PrinterSettings.PrinterName, output); }
Replies
Know the answer? Post it — somebody with the same question will find it here.