IPrxSheetHeaderPart.Image

Syntax

Image: IGxImage;

Description

The Image property determines image for a part of the title or a header and footer.

Example

To execute the example the repository must contain a regular report with the REPORT_PRX identifier. The file system must include a file named C:\Logo.gif.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

Header: IPrxSheetHeaderBase;

HeaderPart: IPrxSheetHeaderPart;

Img: IGxImage;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("REPORT_PRX").Edit;

Report := MObj As IPrxReport;

Header := Report.ActiveSheet.Header;

HeaderPart := Header.Center;

HeaderPart.Text := "&[Picture]";

Img := New GxImage.CreateFromFile("C:\Logo.gif");

HeaderPart.Image := Img;

HeaderPart.ImageHeight := 10;

HeaderPart.ImageWidth := 10;

MObj.Save;

End Sub Main;

After executing the example central part of the header displays image from the file C:\Logo.gif.

See also:

IPrxSheetHeaderPart