Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove picture... #1396

Open
1 task
FlauzerOriginal opened this issue Aug 5, 2024 · 2 comments
Open
1 task

Remove picture... #1396

FlauzerOriginal opened this issue Aug 5, 2024 · 2 comments
Labels

Comments

@FlauzerOriginal
Copy link

FlauzerOriginal commented Aug 5, 2024

NPOI Version

2.7.0

File Type

  • XLSX

Upload the Excel File

TemplateTest.xlsx

Issue Description

Actually, simply I'm trying to erase n rows from an excel sheet. In one column there are images.
Ideally, I call: removeRow(...) and ShiftRows (...)

Reproduce Steps

for our example, much more simply, after getShapes we can delete the first image... if you need the whole code I'll send it...
Basically it is

var drawing = _sheet.DrawingPatriarch as XSSFDrawing;
   foreach (var picture in RemovePictureList)

          var bres = drawing.GetShapes().Remove(picture as XSSFShape);

This method, Remove, always returns false.

most likely I'm doing something wrong, do you have any suggestions because I'm running out of ideas...
Is it possible to check?
Thanks.

@wuzxc1230123
Copy link
Contributor

You need to provide complete code

@wuzxc1230123
Copy link
Contributor

@FlauzerOriginal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants