The error is that the clear text is badly squashed, so that the clear text numbers are squashed together.
I suspect my aspect ratio is off, although I'm converting this from old code which was working in version 3, so I'm unsure what might have changed.
The current code (with variables substituted):
- Code: Select all
vpe.Barcode(2.8, 3.65, 7.25, 5.05, BarcodeType.Code128, "01010000102220000017", String.Empty);
Old code:
- Code: Select all
vpe.BarCode( 280, 365, 725, 505, BCT_CODE128C, lcTNStr , 0)
When I change the width to a negative number, the barcode width expands, and the clear text is no longer squashed.
Can you confirm my suspicion that this is an aspect ratio problem, and suggest any solutions or reasons that this might be different between versions? Is there any way to control the font size of the clear text or scale the barcode to still fit within the rectangle provided?
(I'd attach a screenshot of the problem, but don't see an easy way to do so.)