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

Free Support Forum - aspose.com

Setting Background Image using Aspose.Cells does not work


setting a background image using Aspose.Cells 21.9.0 does not work.
Background.jpg (128.2 KB)

        var workbook = new Workbook();
        var sheet = workbook.Worksheets[0];
        sheet.BackgroundImage = File.ReadAllBytes("Documents/Background.jpg");

        // background image is not set!
        workbook.Save(Path.Combine(Environment.CurrentDirectory, "ExcelWithBackground.xlsx"));

Best regards


I did test your scenario/ case using v21.9.1 (latest version/fix) with your exact code and it works fine. See the screenshot (attached) of the output file for your reference.
sc_shot1.png (726.0 KB)

Also, please find attached the output Excel file here.
files1.zip (118.1 KB)