IEaxHeaderPart.ImageAsBackground

Syntax

ImageAsBackground: Boolean;

Description

The ImageAsBackground property determines whether an image can be used as header background. True - use image as the background, False - do not use.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. The file system should contain the C:\Logo.gif file.

Sub UserProc;
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.Image := Img;
    HeaderPart.ImageAsBackground := True;
    MObj.Save;
End Sub UserProc;

After executing the example the central part of the header displays the image from the C:\Logo.gif file. This image is used as a background.

See also:

IEaxHeaderPart