This project has moved and is read-only. For the latest updates, please go here.

Insert Bitmap

Aug 12, 2010 at 11:29 PM
Hello. I guess this is a simple question. I'm trying to place a picture in my worksheet. With this code I think I have the picture: Bitmap bitmap1 = ConsoleApplication1.Properties.Resources.logo; Now, how do I insert it using epplus? Thank you.
Aug 16, 2010 at 6:55 AM

Use the AddPicture method...

ExcelPicture pic = ws.Drawings.AddPicture("Bitmap1", bitmap1);

Have a look at sample 6 to see how it works.


Aug 16, 2010 at 11:11 AM
I knew it, it was easy... Thanks for your help.