ImageDocument: IDocumentBase;
The ImageDocument property determines the Document repository object for header part.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier and a document with the DOC_OBJ identifier containing an image.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Header: IEaxHeader;
HeaderPart: IEaxHeaderPart;
Doc: IDocumentBase;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
Header := Expr.Header;
HeaderPart := Header.Center;
HeaderPart.Text := "&[Picture]";
Doc := MB.ItemById("DOC_OBJ").Edit As IDocumentBase;
HeaderPart.ImageDocument := Doc;
MObj.Save;
End Sub UserProc;
After executing the example the central part of the header displays image from the DOC_OBJ document.
See also: