All images inserted the same

Please also see this topic: https://stackoverflow.com/questions/77252692/syncfusion-xlsio-trying-to-insert-list-of-images-from-folder-into-each-row-sam

I'm inserting images into an Excel worksheet as follows, but each row has the same picture. Is this a bug? I have downgraded back to 21.1 and the behavior is the same:

for( int row = 1; row <= 10; row++ )

{

var imageFile = new FileInfo( "Image_" + row + ".png" );

using var stream = imageFile.OpenRead();

var image = new Image( stream );

var excelImage = worksheet.Pictures.AddPicture( row, col, image );

excelImage.Picture = image.Clone();

}


Edit: ​this bug seems to have been introduced after 20.0.4.54, that's the latest version I tried in which it still works correctly.


1 Reply

AR Anbazhagan Raja Syncfusion Team October 11, 2023 01:24 PM UTC

Hi Mischa,

 

We have fixed a similar issue in our recent version of XlsIO. We request you upgrade to the latest NuGet version 23.1.40 and check whether the issue is resolved. 

 

Regards,

Anbazhagan R.


Loader.
Up arrow icon