aviario Active Member Licensed User Longtime User Jan 10, 2018 #21 Hello, I tested your library with an Intermec Pr3 printer and it does not print the bitmap Thank
Star-Dust Expert Licensed User Longtime User Jan 10, 2018 #22 There are 2 methods of printing. The former is compatible with most printers. The second with some models. Try both. There is a third method, but I still have to experiment with it, and it is not included in the library
There are 2 methods of printing. The former is compatible with most printers. The second with some models. Try both. There is a third method, but I still have to experiment with it, and it is not included in the library
aviario Active Member Licensed User Longtime User Jan 12, 2018 #23 I have used both methods and it does not print Thank you
Star-Dust Expert Licensed User Longtime User Jan 12, 2018 #24 I'm sorry. On the forum you will find many similar libraries for Bluetooth, try them and see the compatible one for your printer.
I'm sorry. On the forum you will find many similar libraries for Bluetooth, try them and see the compatible one for your printer.
R rkmoray Active Member Licensed User Longtime User May 15, 2018 #25 I am trying you lib on a bt printer,but cannot figure out how to cut the paper after the printing is complete
I am trying you lib on a bt printer,but cannot figure out how to cut the paper after the printing is complete
Star-Dust Expert Licensed User Longtime User May 15, 2018 #26 rkmoray said: I am trying you lib on a bt printer,but cannot figure out how to cut the paper after the printing is complete Click to expand... You need to know the command for cutting the paper. I do not know if it is the same for all printers
rkmoray said: I am trying you lib on a bt printer,but cannot figure out how to cut the paper after the printing is complete Click to expand... You need to know the command for cutting the paper. I do not know if it is the same for all printers
R rkmoray Active Member Licensed User Longtime User May 15, 2018 #27 According to the document for the printer, "• Paper cut by GS V m n." but I do not know how to convert that to run with your library.
According to the document for the printer, "• Paper cut by GS V m n." but I do not know how to convert that to run with your library.
Star-Dust Expert Licensed User Longtime User May 15, 2018 #28 rkmoray said: According to the document for the printer, "• Paper cut by GS V m n." but I do not know how to convert that to run with your library. Click to expand... Tomorrow I'll take a look and let you know
rkmoray said: According to the document for the printer, "• Paper cut by GS V m n." but I do not know how to convert that to run with your library. Click to expand... Tomorrow I'll take a look and let you know
Star-Dust Expert Licensed User Longtime User May 15, 2018 #30 try this Code: Copy PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,0,48)) or Code: Copy Dim N as int = 10 ' n × vertical motion unit PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,65,n)) Last edited: May 15, 2018
try this Code: Copy PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,0,48)) or Code: Copy Dim N as int = 10 ' n × vertical motion unit PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,65,n))
R rkmoray Active Member Licensed User Longtime User May 16, 2018 #31 Thank you for the conversion. Unfortunately neither of them cut the paper as needed. Any other ideas would be appreciated
Thank you for the conversion. Unfortunately neither of them cut the paper as needed. Any other ideas would be appreciated
Star-Dust Expert Licensed User Longtime User May 16, 2018 #32 Try adding a zero after the command PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,0,48,0))
R rkmoray Active Member Licensed User Longtime User May 16, 2018 #33 So there is no misunderstanding, this is what my code is, and it still does not cut the paper. Code: Copy Stampa.Initialize(Me,"Stampa",Encoding.Windows1252) Stampa.AddBuffer_Writeline("How are you?") Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,0,48,0)) Stampa.SendAllAndClose
So there is no misunderstanding, this is what my code is, and it still does not cut the paper. Code: Copy Stampa.Initialize(Me,"Stampa",Encoding.Windows1252) Stampa.AddBuffer_Writeline("How are you?") Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,0,48,0)) Stampa.SendAllAndClose
Star-Dust Expert Licensed User Longtime User May 16, 2018 #34 GS V m n 29=GS, 86 = V, m=56, n= (any number)
R rkmoray Active Member Licensed User Longtime User May 16, 2018 #35 I changed the arraybyte to read Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,56,10)) but it still does not cut.
I changed the arraybyte to read Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,56,10)) but it still does not cut.
Star-Dust Expert Licensed User Longtime User May 16, 2018 #36 You need to find the right code for your printer, and sometimes the commands close with zero
R rkmoray Active Member Licensed User Longtime User May 16, 2018 #37 according to https://www.rapidtables.com/convert/number/ascii-hex-bin-dec-converter.html, the conversion should be GS:29 V:86 m:109 n:110 which means my bytearray should be Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,109,110)) is that correct, also should ther ebe a spce(20) in between each char (29,20,86,20,109,20,110)
according to https://www.rapidtables.com/convert/number/ascii-hex-bin-dec-converter.html, the conversion should be GS:29 V:86 m:109 n:110 which means my bytearray should be Stampa.AddBuffer_ArrayByte(Array As Byte(29,86,109,110)) is that correct, also should ther ebe a spce(20) in between each char (29,20,86,20,109,20,110)
Star-Dust Expert Licensed User Longtime User May 16, 2018 #38 Is right,but no space. N = vertical motion Code: Copy Dim N as int = 10 ' n × vertical motion unit PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,65,n)) Last edited: May 16, 2018
Is right,but no space. N = vertical motion Code: Copy Dim N as int = 10 ' n × vertical motion unit PrinterBT.AddBuffer_ArrayByte(Array As Byte(29,86,65,n))
R rkmoray Active Member Licensed User Longtime User May 16, 2018 #39 I appreciate all the help you are giving me,and if this ever completely works, there is a pot of coffee ion it for you, not just a cup. I have the line Code: Copy PrintBuffer=ESC_POS.BoldOn & ESC_POS.FontA_Bold & ESC_JUSTIFY_LEFT & TicketCatName & ESC_JUSTIFY_RIGHT & SellingPrice Starter.Printer.WriteLine(PrintBuffer) What I am trying to do is have the first variable (TicketCatName ) on the left justified and the second variable(SellingPrice) Right justified But what I get is basically both variables printer as if it were concatenated.
I appreciate all the help you are giving me,and if this ever completely works, there is a pot of coffee ion it for you, not just a cup. I have the line Code: Copy PrintBuffer=ESC_POS.BoldOn & ESC_POS.FontA_Bold & ESC_JUSTIFY_LEFT & TicketCatName & ESC_JUSTIFY_RIGHT & SellingPrice Starter.Printer.WriteLine(PrintBuffer) What I am trying to do is have the first variable (TicketCatName ) on the left justified and the second variable(SellingPrice) Right justified But what I get is basically both variables printer as if it were concatenated.
vecino Well-Known Member Licensed User Longtime User Jun 19, 2018 #40 Hi, I am testing your library and I see that there is no example Send_Buffer_to_Print_flush. It's a mistake? Regards.
Hi, I am testing your library and I see that there is no example Send_Buffer_to_Print_flush. It's a mistake? Regards.