We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Cell Barcode image rendering bug

Barcode-Number.zip (242.2 KB)
The attached Excel files contain Barcode images (Issue271…xls) - which are rendered as imgae / tif using Aspose cells - however the generated image contains a number that shouldn’t appear - please llok at the goodImage.tif file to see the desired ouput (this was generated using MS Fax printer).

@SamManoff,

Thanks for the template file and image files.

After an initial test, I am able to reproduce the issue as you mentioned by using the following sample code with your template files. I found an issue with barcode images in Sheet to TIFF rendering, the generated image contains a number on barcode that should not appear:
e.g
Sample code:

Workbook book = new Workbook("e:\\test2\\Issue271_1.xls");

            //Define ImageOrPrintOptions
            var options = new ImageOrPrintOptions
            {
                SaveFormat = SaveFormat.TIFF,
                HorizontalResolution = 200,
                VerticalResolution = 200,
                TiffCompression = TiffCompression.CompressionCCITT4
            };

            var i = 0;
            foreach (Worksheet sheet in book.Worksheets)
            {
                if (sheet.IsVisible)
                {
                    //Render the sheet with respect to specified image/print options
                    SheetRender sr = new SheetRender(sheet, options);
                    //Render the image for the sheet
                    using (var imageStream = new MemoryStream())
                    {
                        sr.ToImage(i, imageStream);
                        imageStream.Seek(0, SeekOrigin.Begin);
                        var img = System.Drawing.Image.FromStream(imageStream);
                        img.Save("e:\\test2\\out1image" + i.ToString() + ".tif", ImageFormat.Tiff);
                        i++;
                    }
                }
            }

I have logged a ticket with an id “CELLSNET-47258” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

Thanks Amjad.
The problem is not restricted to Tiff output any image format seems to emit a weird number.
Please keep me updated on possible resolution.

Regards Sam.

@SamManoff,

Thanks for sharing your findings.

I have logged it and we will try to figure your issue out precisely (for all image formats).

@SamManoff,

This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@SamManoff,

Please try our latest version/fix: Aspose.Cells for .NET v20.3.4 (attached)

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells20.3.4 For .Net2_AuthenticodeSigned.Zip (5.3 MB)
Aspose.Cells20.3.4 For .Net4.0.Zip (5.3 MB)

The issues you have found earlier (filed as CELLSNET-47258) have been fixed in Aspose.Cells for .NET v20.4. This message was posted using Bugs notification tool by Amjad_Sahi

Thanks,
Problem has been fixed.

@SamManoff,

Good to know that your issue resolve by latest version/fix. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.