EPPlus.Core icon indicating copy to clipboard operation
EPPlus.Core copied to clipboard

export excel with picture in ubuntu

Open zqxin45 opened this issue 7 years ago • 2 comments
trafficstars

Summary of the issue

i have a export excel project with picture,os windows is ok ,but linux is wrong with no Unresponsive,the server cpu is increase to 99%,the picture filesize has limit?

foreach (var item in items)
{
      using (var stream = new MemoryStream(item.PicUrlByte))
      {
		var img = Image.FromStream(stream);
		ExcelPicture pic = worksheet.Drawings.AddPicture($"pic{i}", img);
		pic.SetSize(120, 120);
		var row = i - 1;
		pic.SetPosition(row, 20, 0, 10);
		worksheet.Row(i).Height = 120;
       }
}

Output:

Exception message:
Full Stack trace:

zqxin45 avatar Dec 13 '17 03:12 zqxin45

v1.5.4 uses the official System.Drawing.Common for .NET Core 2.0. Give it a try.

dotnet add package EPPlus.Core --version 1.5.4 

VahidN avatar Dec 14 '17 06:12 VahidN

i face the same issue even after using 1.5.4

piyusher avatar Dec 04 '18 19:12 piyusher