Android Question ECS/POS printer USB print library (error)

mario53

Member
Licensed User
in reference to the post:https://www.b4x.com/android/forum/threads/ecs-pos-printer-usb-print-library.87122/#content
I can not connect to the thermal printer; trying the suggested library I have the following error:
java.lang.exception: java.lang.arrayindexoutboundsexception: lenght=8;index=8
to this statement:
Dim vid As Int
Dim pid As Int
vId= 0xFE6
pId=0x811E
pt.connectusb2(vid,pid) 'HERE IS YOU DEVICE VendorID AND productID"
while with the usb-serial method I can (only for texts) to connect to the printer:https://www.b4x.com/android/forum/threads/astreams-write-to-print.82429/
some idea?
thank you
 

mario53

Member
Licensed User
x Devil App
thanks for this post very interesting, but I already 'can print in text format, unfortunately I can not print images
 
Upvote 0

mario53

Member
Licensed User
it is a sequence of incomprehensible characters.
which is the following to write, the one to recall it, the one to close the writing.
it is possible to have an example in b4a
I honestly did not think it was so complicated to print an image in the printer.
in the example posted by "hears" with an instruction you print, but you can not make it work.
sorry for the lack of knowledge of English.
 
Upvote 0
Top