c# - Zebra TLP2844 Windows 7 USB escape issue -


i on windows 7 32bit running latest drivers zebra , printing via usb tlp2844. trying generate set of labels , print them label printer c# using rawprinterhelper class mentioned in numerous posts online. if power printer , use om command disable initial esc sequence feed works , prints 2 labels correctly. thereafter height appears incorrect because instead of printing 2 labels prints 1 label second piece of text towards bottom of label. appreciated.

label dimensions: width: 75mm height: 34mm gap: 3mm

example command sequence being sent printer:

om  n q599 q272,024 zt s2        a253,26,0,3,1,1,n,"test label text" p1  n q599 q272,024 zt s2        a253,26,0,3,1,1,n,"test label2 text" p1 

as disabling detection of top of label culprit q272,024 not large enough. have not posted info not sure why using om command example not seem necessary.


try omitting q , om device should smart enough able feed correctly on it's own. (make sure have done reset make sure cleared out previous om's may have sent) make sure in line mode , not page mode.


here few classes wrote convert inches or mm dots wrote internal company use.

 public static partial class convert     {         /// <summary>         /// converts number of dots in millimeters in length         /// </summary>         /// <param name="dots">length in dots</param>         /// <returns>length in millimeters</returns>         public static float dotstomm(int dots)         {             return dots * 0.125125f;         }         /// <summary>         /// converts millimeters dots in length.         /// </summary>         /// <param name="mm">length in millimeters</param>         /// <returns>length in dots</returns>         public static int mmtodots(float mm)         {             return (int)(mm / 0.125125f);         }         /// <summary>         /// converts number of dots in inches in length         /// </summary>         /// <param name="dots">length in dots</param>         /// <returns>length in inches</returns>         public static float dotstoinches(int dots)         {             return dots * 0.0049125f;         }         /// <summary>         /// converts inches dots in length.         /// </summary>         /// <param name="mm">length in inches</param>         /// <returns>length in dots</returns>         public static int inchestodots(float inches)         {             return (int)(inches / 0.0049125f);         }     } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -