Hi,
I use LazReport to print labels with a Zebra printer in some of my Windows programs.
The label format consists of two or three lines of text and a 1D barcode.
When I used Lazarus 2.0.6, everything worked fine, and the label printing was successful, adapting correctly to the 50x30 mm label format. With newer versions of Lazarus (from 2.2.4 onward, including the latest 3.8 ), the label is printed as just a thin strip of a few millimeters.
I have attached a scan showing a test printout of the labels using both versions of Lazarus: 2.0.6, which worked correctly, and 3.8, which does not.
Additionally, I have included a simple project related to this printing issue.
I also noticed that if I run the print job in preview mode and then open and close the printer properties window without making any changes, the print works correctly.
Of course, users cannot be expected to perform this procedure for every single label they print.
Thank you in advance.