You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.
First, thanks for the awesome project.
I try this code with couple different images, all the same result
using (var p = new ExcelPackage())
{
var ws = p.Workbook.Worksheets.Add("1");
ws.Cells.Style.Font.Size = 9; // set 11 or more, picture will be fine
var pic = ws.Drawings.AddPicture("1", Image.FromFile("1.jpg"));
pic.SetSize(50);
p.SaveAs(new System.IO.FileInfo("1.xlsx"));
}
ws.Cells.Style.Font.Size = 9; // set 11 or more, picture will be fine
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First, thanks for the awesome project.
I try this code with couple different images, all the same result
ws.Cells.Style.Font.Size = 9; // set 11 or more, picture will be fine
The text was updated successfully, but these errors were encountered: