Dear Support Team,
We try to use Aspose.Barcode.dll to develop application barcode.
We have problem with barcode width it longer. how to reduce width size.
The data in barcode 39 charecters (string _text = “|099400018891900” + “\r” + “010400530169042” + “\r” + “” + “\r” + “0” when print out 8.5 cm but we need 5 cm.
string _text = “|099400018891900” + “\r” + “010400530169042” + “\r” + “” + “\r” + “0”;
Aspose.BarCode.BarCodeBuilder builder = new Aspose.BarCode.BarCodeBuilder();
builder.CodeText = _text;
builder.CodeLocation = Aspose.BarCode.CodeLocation.Below;
builder.SymbologyType = Aspose.BarCode.Symbology.Code128;
builder.Resolution = new Aspose.BarCode.Resolution(100f, 100f, Aspose.BarCode.ResolutionMode.Graphics);
builder.GraphicsUnit = System.Drawing.GraphicsUnit.Millimeter;
builder.BarHeight = 15;
builder.xDimension = 0.01f;
builder.BarWidthReduction = 0.01f;
builder.WideNarrowRatio = 1f;
builder.AspectRatio = 0.01f;
builder.Margins.Set(2, 2, 2, 0);
MemoryStream imgStream = new MemoryStream();
builder.Save(imgStream, ImageFormat.Png);