Print QR/BAR code direct to printer( on Windows )

383 views
Skip to first unread message

Diego F

unread,
Aug 28, 2023, 7:44:31 AM8/28/23
to Harbour Users
Hi, On many occasions I have needed to print qr/bar codes directly to printer, for example, on thermal printers. The way I had found was to generate a pdf( haruPdf/hbZebra ) of the document and then send it to the printer(  ex: SumatraPdf )  via a processRun. For those who are interested, I found a very simple option to implement and without the need to create a pdf. I attach the code. Maybe it's a known technique but I had no idea that I could do it this way.

This works for windows.

Diego.

hbmk.hbm
test.prg

pete....@gmail.com

unread,
Aug 30, 2023, 7:11:45 AM8/30/23
to Harbour Users
Nice code! It certainly will be useful.
Thanks for sharing!

regards,
Pete
Reply all
Reply to author
Forward
0 new messages