How to print QR code generated in the Canvas to thermal printer in MIT APP Inventor 2?

(added to FAQ)