ExcelFile.GetHeaderOrFooterImage Method
Overloads
- ExcelFile.GetHeaderOrFooterImage(THeaderAndFooterKind, THeaderAndFooterPos, TXlsImgType, Stream)
- ExcelFile.GetHeaderOrFooterImage(THeaderAndFooterKind, THeaderAndFooterPos, TXlsImgType)
ExcelFile.GetHeaderOrFooterImage(THeaderAndFooterKind, THeaderAndFooterPos, TXlsImgType, Stream)
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 PageHeader and 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.Core
public abstract 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. |
See also
ExcelFile.GetHeaderOrFooterImage(THeaderAndFooterKind, THeaderAndFooterPos, TXlsImgType)
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 PageHeader and 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.Core
public Byte[] GetHeaderOrFooterImage(THeaderAndFooterKind headerAndFooterKind, THeaderAndFooterPos section, ref TXlsImgType imageType)
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) |
Returns
Bytes for the image. Null if there is no image on this position.