Posted 20 February 2025, 11:38 am EST
Hi
I am working with the RenderBarCode control, specifically using the BarCodeEnum.EAN_13 type, and I would like to ask if it’s possible to dynamically adjust the barcode’s resolution when rendering. My goal is to display the EAN13 barcode within a smaller space than the default size, while maintaining high quality and sharpness.
Here is an example of our current implementation:
Dim barcode As New RenderBarCode(BarCodeEnum.EAN_13) With {
.X = New Unit(766, UnitTypeEnum.Twip),
.Y = New Unit(1588, UnitTypeEnum.Twip),
.ShowText = True,
.Text = "860601860500",
.Height = 0.5,
.Width = 0.5
}
C1PrintDocument1.Body.Children.Add(barcode)
C1PrintPreviewControl1.Document = C1PrintDocument1
In this setup, the barcode width and height are set to 0.5, but I am looking for a way to dynamically adjust the resolution so that the barcode fits within a smaller area without losing quality or data. Is there a way to achieve this?
Thank you in advance for your assistance!