Skip to content

AddPicture ImagePath if file not found - #2553

Merged
JanKallman merged 2 commits into
develop8from
bug/s1078-linked-picture
Oct 2, 2026
Merged

JanKallman merged 2 commits into
develop8from
bug/s1078-linked-picture

Conversation

@OssianEPPlus

@OssianEPPlus OssianEPPlus commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Bug s1078
If a user Linked an External Image without Embedding Epplus would Throw if the image could not be found.
For e.g. the command:

ws.Drawings.AddPicture("myLinkedPic", "../images/epplus_linkedLogo.png", PictureLocation.Link);

Excel opened and closed files like that with no issue
While Epplus would throw or in some cases add a faulty Absolute Path link to the Epplus/bin/debug despite there not being a file there either.

This PR fixes both issues and simply maintains the link if the picture cannot be found.

@JanKallman
JanKallman merged commit 37dc24c into develop8 Oct 2, 2026
3 checks passed
@JanKallman
JanKallman deleted the bug/s1078-linked-picture branch October 2, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants