I tried using “metafileImage” for saving barcodes to a file, and the barcode generated appears to be sharper, but it’s still not scanable. The barcode generated by BarCodeControl2 scans fine when I print the web page, but linearBarCode1.MetafileImage one doesn’t scan. If you look at the barcodes, they seem slightly different. I’ll try to attach some sample barcodes for review.
Sample Code I am currently using…
BarCodeControl2.SymbologyType = (Aspose.BarCode.Symbology)Enum.Parse(typeof(Aspose.BarCode.Symbology),“Code128”,true);
BarCodeControl2.CaptionAbove.Text = “Purolator Shipment Code”;
BarCodeControl2.CodeText = _shipmentCode;
BarCodeControl2.CodeLocation = (Aspose.BarCode.CodeLocation)Enum.Parse(typeof(Aspose.BarCode.CodeLocation), “Below”, true);
BarCodeControl2.RotationAngle = (Aspose.BarCode.RotationAngle)Enum.Parse(typeof(Aspose.BarCode.RotationAngle), “ZeroDegree”, true);
BarCodeControl2.Resolution.DpiX = 300;
BarCodeControl2.Resolution.DpiY = 300;
BarCodeControl2.ImageQuality = (Aspose.BarCode.ImageQualityMode)Enum.Parse(typeof(Aspose.BarCode.ImageQualityMode), “AntiAlias”, true);
BarCodeControl2.Visible = true;
linearBarCode1 = new Aspose.BarCode.LinearBarCode(_shipmentCode,(Aspose.BarCode.Symbology)Enum.Parse(typeof(Aspose.BarCode.Symbology),“Code39Extended”,true));
linearBarCode1.SymbologyType = (Aspose.BarCode.Symbology)Enum.Parse(typeof(Aspose.BarCode.Symbology),“Code128”,true);
linearBarCode1.CodeText = _shipmentCode;
linearBarCode1.CodeLocation = (Aspose.BarCode.CodeLocation)Enum.Parse(typeof(Aspose.BarCode.CodeLocation), “Below”, true);
linearBarCode1.RotationAngle = (Aspose.BarCode.RotationAngle)Enum.Parse(typeof(Aspose.BarCode.RotationAngle), “ZeroDegree”, true);
linearBarCode1.Resolution.DpiX = 300;
linearBarCode1.Resolution.DpiY = 300;
linearBarCode1.ShowBorder = false;
linearBarCode1.ImageQuality = (Aspose.BarCode.ImageQualityMode)Enum.Parse(typeof(Aspose.BarCode.ImageQualityMode), “AntiAlias”, true);
linearBarCode1.MetafileImage.Save(ConfigurationSettings.AppSettings[“rootPath.barcodes”] + _shipmentCode + “.gif”,System.Drawing.Imaging.ImageFormat.Gif);