Browse our Products

Aspose.BarCode for Reporting Services 24.12 Release Notes

All Changes

KeySummaryCategory
BARCODENET-37929Implement pdf encoder for Aspose.BarcodeEnhancement
BARCODENET-39169Barcode scanner reads the wrong value using USPS OneCodeBug
BARCODENET-39171Fix infinite recursion in QuadPointsHelperBug
BARCODENET-39173Generator always throws Aspose.BarCode.BarCodeException: ‘Can’t render barcode: not enough space’ on RotationAngle=45Bug
BARCODENET-39178Fields of ComplexBarcode.Address were not initializedBug

Public API changes and backwards compatibility

Implemented PDF encoder (experimental mode)

Implemented experimental PDF encoder which allows to save generated barcodes into the vector PDF format.

var gen = new BarcodeGenerator(EncodeTypes.Code128, "Aspose");
gen.Save("code128.pdf", BarCodeImageFormat.Pdf);

Fixed USPS OneCode encoder

Generation of USPS OneCode barcodes was fixed with start “00”.

using (BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.OneCode, 0027090323734116180477077361580))
{
    gen.Save("onecode.png", BarCodeImageFormat.Png);
    using (BarCodeReader reader = new BarCodeReader(gen.GenerateBarCodeImage(), DecodeType.OneCode))
        foreach (BarCodeResult result in reader.ReadBarCodes())
			Console.WriteLine(result.CodeTypeName + ":" + result.CodeText);
}

Fixed barcode generation in AutoSizeMode.Nearest mode

Fixed barcode generation in AutoSizeMode.Nearest mode with 45 degree angle.

var gen = new BarcodeGenerator(EncodeTypes.QR, "Hello world!");
gen.Parameters.AutoSizeMode = AutoSizeMode.Nearest;
gen.Parameters.RotationAngle = 45;
gen.Parameters.ImageWidth.Pixels = 400;
gen.Parameters.ImageHeight.Pixels = 400;
gen.Save("qr45.png", BarCodeImageFormat.Png);

Fixed not informative exception for SwissQR

Fixed not informative exception for SwissQR as “System.NullReferenceException”.

SwissQRCodetext swissQRCodetext = new SwissQRCodetext();
SwissQRBill swissQRBill = swissQRCodetext.Bill;
swissQRBill.Account = "DE89370400440532013000";
swissQRBill.Amount = 1000;
swissQRBill.Currency = "CHF";
swissQRBill.Reference = "210000000003139471430009017";
Address address = new Address();
address.Name = "Creditor 1 Address";
swissQRBill.Creditor = address;

try
{
    ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(swissQRCodetext);
    generator.Save("SwissQRBill.png");
}
catch (Exception ex)
{
    //"Creditor's CountryCode is a mandatory field and must be valid two-letter ISO country code."
    Console.WriteLine(ex.Message);
}