Insert Bitmap

Aug 12, 2010 at 10: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.
Coordinator
Aug 16, 2010 at 5:55 AM

Use the AddPicture method...

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

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

Jan

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