have you written a wrapper for it with java? Only the jar will not do anything without having a wrapper for it.I tried to copy it to the library folder but I can not find it in the library list ...
is a printer that uses esc pos?I have a thermal mobile printer. It has BT and USB connectivity. I received an SDK file with the jar extension (attached file). I tried to copy it to the library folder but I can not find it in the library list ... Can someone help me with an idea of how I could use the entire set of commands of the printer? Simple printing works, but without barcodes, font sizes, etc.
Thank you
Sub GetPrn As JavaObject
Dim jo As JavaObject
Return jo.InitializeStatic("com.RT_Printer.BluetoothPrinter.BLUETOOTH").RunMethod("with", Array(GetContext))
End Sub
You need to have java knowledge.I have never worked with JavaObject ...
ifIf the printer uses standard Epson esc pos codes then
JavaThis wrapper is written in Java or B4A?
The forum search is working. Do not expect to find much. But there are some Tips.Is there some documentation somewhere?
I had a look and downloaded the driver and their is a Command Set Manual, with what looks like everything you need. Do you have a sample of the label you are trying to create, and I'll let you know how easy it would be to do.I don't have to much info about that printer... this is the product link:
https://www.rongtatech.com/rpp300-72mm-mobile-printer_p29.html
The printer seems to have 2 fonts and they both appear to be Chinese simplified, as per the manual, but I can't believe it can't do ASCII alphanumeric. Again, if I can see a label, or a sketch of a label you are trying to print, I can give you a little more guidance.Hi Colin,
I'm interested in using different size and normal or bold fonts, and thinner horizontal lines (if is possible).
As a label that looks relatively straightforward. I would suggest aligning to the left if possible, otherwise you will need to calculate the position of right aligned items, based on text and size.something like that (see attached image)
ESC/POS is a variant for controlling receipt printers as commonly used at the point of sale (POS). An open source project listing almost all the ESC/POS compatible printers and their capabilities is available here.
It's been a decade since I last spoke printer control codes, so I'm a bit rusty on this, but according to that reference.epson page:I'm interested in using different size and normal or bold fonts, and thinner horizontal lines (if is possible).
Name: Turn emphasized mode on/off
Format:
ASCII: ESC E n
Hex: 1B 45 n
Decimal: 27 69 n
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
Name: Select character size
Format:
ASCII: GS ! n
Hex: 1D 21 n
Decimal: 29 33 n
Description: Selects character size (height magnification and width magnification).
+1 ;-)... I can't believe it can't do ASCII alphanumeric.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?