IEaxHeaderPart.ImageHeight

Syntax

ImageHeight: Double;

Description

The ImageHeight property determines height of the image used in a header part.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. File system should include a file named C:\Logo.gif.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Expr: IEaxAnalyzer;

Header: IEaxHeader;

HeaderPart: IEaxHeaderPart;

Img: IGxImage;

Begin

MB:=MetabaseClass.Active;

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

Expr:=MObj As IEaxAnalyzer;

Header:=Expr.Header;

HeaderPart:=Header.Center;

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

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

HeaderPart.ImageHeight := 20;

HeaderPart.ImageWidth := 20;

HeaderPart.Image := Img;

MObj.Save;

End Sub Main;

 

After executing the example, central part of the header displays image from the file C:\Logo.gif. Image width and height are set to 20 millimeters.

See also:

IEaxHeaderPart