1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Olean, NY
    Rep Power

    Printing a file to a thermal printer

    I have a program that creates a file to print to a thermal printer, inside the file looks like this:

    N OD10 q812 Q1218,24 D15 ZT LO0,147,800,4 LO0,401,800,4 LO0,736,800,4 A35,9,0,2,1,1,N,"From:" A35,28,0,2,1,1,N,"Foo Bar" A35,48,0,2,1,1,N,"n/a" A35,68,0,2,1,1,N,"123 Any Street NW" A35,89,0,2,1,1,N,"" A35,129,0,2,1,1,N,"(716) 111-1111" A490,69,0,2,1,1,N,"CAD: 118541454/WSXI2500" A43,183,0,4,1,1,N,"n/a" A43,213,0,4,1,1,N,"" A43,243,0,4,1,1,N,"476 Highland Terrace" A43,273,0,4,1,1,N,"**TEST LABEL - DO NOT SHIP**" A35,109,0,2,1,1,N,"Olean, NY 14760" A490,28,0,2,1,1,N,"Ship Date: 23MAR12" A490,48,0,2,1,1,N,"ActWgt: 10.0 LB" A43,153,0,4,1,1,N,"Foo Bar" A615,153,0,2,1,1,N,"(716) 111-1111" A43,306,0,3,1,2,N,"Beverly Hills, CA 90210" A530,306,0,2,2,2,N,"(US)" A725,213,0,2,1,1,N,"Ground" LO670,238,105,10 LO670,248,10,112 LO765,248,10,112 LO670,360,105,10 LO476,3,4,145 A650,173,0,3,2,2,N,"FedEx" A690,256,0,5,2,2,N,"G" B80,771,0,1E,4,2,290,N,"9612019000000000000000" A135,1085,0,4,1,1,N,"(9612019) 0000000  00000000" A783,388,3,1,1,1,N,"J12101112192125" A10,158,0,3,1,1,N,"TO" A25,1108,0,3,1,1,N,"GND" A25,1133,0,3,1,1,N,"Prepaid" A300,1113,0,3,1,1,N,"" A300,1135,0,3,1,1,N,"" b50,428,P,800,800,s5,f0,x2,y10,r80,o0,l12,"[)>010290210840019000000000000000FDEB00000000831/110.0LBN476 Highland TerraceBeverly HillsCAFoo Bar0610ZGD00611Zn/a12Z716111111114Z**TEST LABEL - DO NOT SHIP**23ZN22ZN20Z 031Z                                  26Z7054" A16,358,0,1,1,1,N,"Ref: " A16,373,0,1,1,1,N,"INV: " A16,388,0,1,1,1,N,"PO: " A406,388,0,1,1,1,N,"Dept: " A625,488,0,2,1,2,N,"1" A640,528,0,2,1,2,N,"of" A625,568,0,2,1,2,N,"1" P1 N
    but when i open it and print, it prints just like this, instead of formatted like it should be, does anyone know how to get a thermal printer to print properly??

    Thank you
  2. #2
  3. Automagically Delicious
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location - I live next door.
    Rep Power
    You will need to look at specifics for that printer. My guess would be that there's something that the printer expects and does not receive (e.g. a "001001AB" indicating which version of code it's using) or something that it receives it does not expect (e.g. a " 001001AB" - notice the space) that prevents it from operating correctly. Do you have any examples that DO work correctly?
    Adam TT

IMN logo majestic logo threadwatch logo seochat tools logo