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?
 

Peter Simpson

Expert
Licensed User
Longtime User
@rafaelmotaquintana what BT printer are you using, is it a Drucker, you do not need DoEvents???
 
Last edited:
Upvote 0
Top