Adding images into Excel using EPPlus

前端 未结 6 2171
梦如初夏
梦如初夏 2020-11-27 07:07

I am trying to add the same image multiple times into an excel file using EPPlus. I am using the following code to do so:

Image logo = Image.FromFile(path);
         


        
6条回答
  •  失恋的感觉
    2020-11-27 07:34

    Add the following right before you save the document:

    foreach (ExcelPicture drawing in ws.Drawings)
       drawing.SetSize(100);
    

提交回复
热议问题