Extract Header Image from Excelfile RightHeaderPicture

I manually inserted an Image in the top right Header of my Excel file. How do I get it back via excel interop?

Background is automatic document validation.

This one returned the correct filename (without extension), so i am sure this is the right place:

excelApp.ActiveSheet.PageSetup?.RightHeaderPicture

However, when iteration through the Images saved in the file, only the Images from the cells shows up:

foreach (var shape in excelApp.ActiveSheet.Shapes)
{
    MessageBox.Show(shape.Name);
}

using excelApp.ActiveSheet.Pictures does not give other results

The excel workbook contains only one sheet.

Is there Property I missed?

External links on msdn, which did not help:

https://msdn.microsoft.com/de-de/library/microsoft.office.interop.excel.pagesetup.rightheaderpicture(v=office.11).aspx https://msdn.microsoft.com/de-de/library/microsoft.office.interop.excel.graphic_members(v=office.11).aspx

链接地址: http://www.djcxy.com/p/75448.html

上一篇: EPPlus将图像作为链接到Excel文件中的文件

下一篇: 从Excelfile RightHeaderPicture中提取标题图像