Android Question Printing problem

GaNdAlF89

Active Member
Licensed User
Longtime User
Hi, I have to write an app to print some strings, but I don't understand how to send commands to printer connected via bluetooth (I tried using either TextWriter and AsyncStreams objects). Can anyone help me please?

The printer is:
http://www.custom.it/bigliettazione-mobile/my-printer-a-86-7

And the manual is:
https://www.dropbox.com/s/xocbiep3s1xceau/1148-domc-myprinter-i.pdf?dl=0

From the manual I don't understand what I have to do to give instructions, for example, to print bolded text.
Thanks to all!
 
Last edited:

GaNdAlF89

Active Member
Licensed User
Longtime User
EDIT: Solved, I have to send the commands such as:

B4X:
Dim myBytes() As Byte
  
myBytes=Array As Byte(0x1B,0x47,0x01) 'to set bold mode
BTAStreamPrinter.Write(myBytes) 'to send previous instruction to printer

BTAStreamPrinter.Write("HELLO".GetBytes("UTF8"))
myBytes=Array As Byte(0x0D) 'to add CR
BTAStreamPrinter.Write(myBytes) 'to print the string
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…