excelize icon indicating copy to clipboard operation
excelize copied to clipboard

Add picture function don't work correctly

Open hofarah opened this issue 3 years ago โ€ข 2 comments

Steps to reproduce the issue: 1.add some picture into different rows 2.change other pictures on the file!! 3.multi sheet excel file

Hello.
when  i want to add some picture in one xlsx file multi sheet(in for loop) they don't set correctly and one or 2 image only set .
also 1 picture that was in template file also change!
        f, err := excelize.OpenFile("./FORM_EXCEL.xlsx")
	if err != nil {
		return  err
	}
	err = f.AddPicture("sheet1", "C10", "."+"/images/82018600.png", `{"autofit": true }`) //picture
	err = f.AddPicture("sheet1", "C11", "."+"/images/82018601.png", `{"autofit": true }`) //picture
	err = f.AddPicture("sheet1", "C12", "."+"/images/82018602.png", `{"autofit": true }`) //picture
        f.save()

screenshot-2021-11-03_18:04:12

hofarah avatar Nov 03 '21 14:11 hofarah

3 pictures are different but you see this ...๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†

hofarah avatar Nov 03 '21 14:11 hofarah

Thanks for your feedback, could you show us a complete, standalone example program or reproducible demo? Which version of the Excelize are you using, please gave a try the master branch code. And provide your input file attachment without confidential info if you can.

xuri avatar Nov 03 '21 15:11 xuri

It seems still not have enough info of code and attachments to reproduce this issue, so I'll close this issue, if you have any questions, please let me know to reopen this anytime.

xuri avatar Mar 08 '23 14:03 xuri