Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: Images not referencing correctly [15567]

$
0
0
I have a client that uses workbooks with what amounts to a worksheet per calendar week in it. Each sheet builds on the previous one, etc. Each sheet has 2 different images in it. For their customers, each sheet is extracted and saved to a web server for them to view/download. EPPLUS is used for this.

The problem we're having is that in the extracted sheets the resultant sheet is displaying one of the images in both locations. The file (xlsx) has both images in it OK, but the xml only references one of them so it looks like only one image is in there. This worked correctly in 4.0.4 - i.e. you got both images properly, but in 4.0.5 and 4.1 the problem appears.

This is what we do to extract the sheet:

ExcelPackage package = new ExcelPackage(new System.IO.FileInfo(path + src));
ExcelWorksheet Sheet = package.Workbook.Worksheets[TabName];
string FileName = (path + src).Replace(".xlsx", " - " + TabName + ".xlsx");

if (File.Exists(FileName))
File.Delete(FileName);

ExcelPackage p = new ExcelPackage(new FileInfo(FileName));
p.Workbook.Worksheets.Add(Sheet.Name, Sheet);
p.Save();

Any ideas?

Viewing all articles
Browse latest Browse all 2262

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>