XDoc.Excel
Features
Tech Specs
How-to C#
Pricing

C# Excel Library
C# Excel - Insert Image to Excel File Page in C#.NET


Insert Image to Excel Document Page in C# Project





RasterEdge XDoc.Excel Library provides some methods for developers to insert image to Excel file pages. While, if you want to insert various type image, you may need add the reference RasterEdge.XImage.Raster.dll into your project. If not, you can only add bitmap to the Excel document page(s).


Add Image to Excel File Page Using C#



Add image to Excel file page using C#.

XLSXDocument doc = new XLSXDocument(@"C:\1.xlsx");
BasePage page = doc.GetPage(0);
REImage image = new REImage(@"C:\logo2.jpg");
page.AddImage(image, new Point(100, 100));
doc.Save(@"C:\1image.xlsx");