Android Question Have to use Doevents in Bluetooth printer

rafaelmotaquintana

Active Member
Licensed User
I have this piece of code

B4X:
Sub PrintLine(wLinea As String)
    printer.Write(wLinea) 
    printer.Flush
    f.ForceDoevents(20) 'this function repeat the doevents n times
End Sub

Printline send a line to a bluetooth printer.
Several lines are sent one after another.
If I don't use the doevents, printing is truncated at some point. As using doevents has been recommended not top be used, what should I do here?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…