san san

san san

  • NA
  • 4
  • 5.2k

Barcode printing Sato Lm 408e thermal SBPL

Jun 12 2015 8:05 AM
I'm making an application that produce barcode labels. I'm using Sato LM408e thermal printer. In order to print i'm using sbpl command. I got no error but the printer doesnt print anything. Is there anyone who has experience printing with sato barcode printer? lm 408e to be more specific

My Code:
 
PrintDialog printDia = new PrintDialog(); 
printDia.PrinterSettings = new PrinterSettings(); 
DialogResult result = printDia.ShowDialog(); 
StringBuilder sb = new StringBuilder();         
sb.AppendLine("<STX><ESC>A");         
sb.AppendLine("<ESC>H0001<ESC>V0001<ESC>XM45676567");         
sb.AppendLine("<ESC>Q1");         
sb.AppendLine("<ESC>Z<ETX>"); 
String output = sb.ToString().Replace("<ESC>", ((char)27).ToString());         
output.Replace("<STX>",((char)2).ToString());         
output.Replace("<ETX>", ((char)3).ToString()); 
if (result == DialogResult.OK)      
  {             RawPrinterHelper.SendStringToPrinter(printDia.PrinterSettings.PrinterName, output);         }
 

and my output value :
http://imgur.com/hVCk2ic