Posted by a ceTe Software moderator
Hello,
The XDimensionMilliMeters property of the barcode sets the XDimension in millimeters. XDimension does not represent the entire width of the barcode, it is the width of a module (one black square) and a barcode is composed of several of these modules. The number of modules a barcode contains depends on the data being encoded. It is not possible to specify a set dimension for the entire barcode size. Barcode dimensions vary based on the amount of data being encoded and for a given XDimension. You can use the GetSymbolWidth() method to check the actual width of the barcode for a given xDimension and change the XDimension value until you achieve the desired width.
Thanks,
ceTe Software Support Team.