//Excel 可以创建两种 HSSFWorkbook XSSFWorkbook
IWorkbook wb = new HSSFWorkbook(ms);
//加入图片 pic["PlacodeQPA"] 为图片的byte[], PictureType.PNG 为图片的类型
int ip = wb.AddPicture(pic["PlacodeQPA"], PictureType.PNG);
//获取sheet页,可以根据sheet页名称获取,也可以根据sheet页索引(从0开始)获取
//sheet = wb.GetSheetAt(0);
//先将图片加入wb中,再去获取sheet页!!!
sheet = wb.GetSheet("稽核主页");
IDrawing drawing = sheet.CreateDrawingPatriarch();
IClientAnchor anchor = wb.GetCreationHelper().CreateClientAnchor();
//左上角的行
anchor.Row1 = 28;
//左上角的列
anchor.Col1 = 1;
//右下角的行
anchor.Row2 = 38;
//右下角的列
anchor.Col2 = 4;
IPicture picture = drawing.CreatePicture(anchor, ip);
QPA图为插入的图片