I have no idea how to solve the problem so if someone succeeded to print an barcode with the QLn220 and can share the code, it should help me.
Zebra provides and SDK with developer demos showing how to print on a QLn
http://www.zebra.com/us/en/products-services/software/link-os/link-os-sdk.html