Im using this in a program and i must say...very good.
However i need help with an issue.
Looking at the attachment i uploaded, we can see the actual barcode is really long/height.
Im trying to remove alot of the height but using the code I see on the forums doesnt affect the height of the barcode SPECIFICALLY.
Rather it distorts the entire label.
Pasting my code below, grateful for any assistance.
P.S im using BarCodeType.Code128, is there a smaller one?
- Code: Select all
BarcodeSettings setting = new BarcodeSettings();
BarcodeSettings.ApplyKey("key here");
// setting.Data = id;
// setting.Type = BarCodeType.Code128;
setting.X = 0.8f;
setting.Unit = GraphicsUnit.Millimeter;
//set the width of barcode
setting.BarHeight = 10;
setting.HasBorder = true;
setting.BorderWidth = 0.5F;
setting.Data = id;
// setting.Data2D = "545863";
//generate EAN-Code 128
setting.Type = BarCodeType.Code128;