Can a barcode scanner recognize the barcode when it is displayed on the screen? Most modern telephones have a barcode scanner app included or can be equipped with one for free. If this works, it would narrow down the error source to the printing itself.
You know it is dark times when the trees riot. I think this tiny ad is their leader:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database