|
//Inserting first image
Image firstImage = Image.FromFile("image1.jpg");
BitmapShapeImpl bitmap = worksheet.Pictures.AddPicture(1, 1, firstImage) as BitmapShapeImpl;
//Getting the bottom row and right column
int row = bitmap.BottomRow;
int column = bitmap.RightColumn;
//Inserting the second image after first image
Image secondImage = Image.FromFile("image2.jpg");
worksheet.Pictures.AddPicture(row, 1, secondImage); |