XlsFile.GetHeaderOrFooterImage Method
This method returns the images associated to a given section of the header or footer. There can be only one image per section, and you refer it from the header string (see ExcelFile.PageHeader and ExcelFile.PageFooter) by writing &G. NOTE THAT YOU CAN ONLY USE HEADER AND FOOTER GRAPHICS ON EXCEL XP AND NEWER. Excel 2000 and 97 will still open the file, but they will show no graphics.
Syntax
Namespace: FlexCel.XlsAdapter
public override void GetHeaderOrFooterImage(THeaderAndFooterKind headerAndFooterKind, THeaderAndFooterPos section, ref TXlsImgType imageType, Stream outStream)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
headerAndFooterKind | THeaderAndFooterKind | Type of page for which we want to retrieve the image. You will normally get this value from THeaderAndFooter.GetHeaderAndFooterKind. | |
section | THeaderAndFooterPos | Section of the header or footer for which we want to retrieve the image. | |
ref | imageType | TXlsImgType | Returns the image type for the data returned. (If it is a bmp, jpg or other) |
outStream | Stream | Stream where the image data will be copied. |