IMetabaseUpdateObjectNode.IncludeScreenshot

Syntax

IncludeScreenshot: Boolean;

Description

The IncludeScreenshot property determines whether object preview image is included in update.

Comments

A preview image can be obtained in the IMetabaseObjectDescriptor.Screenshot property.

Available values:

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier.

Add links to the Metabase system assembly.

Sub UserProc;
Var
    Mb: IMetabase;
    Obj: IMetabaseObjectDescriptor;
    Upd: IMetabaseUpdate;
    Nd: IMetabaseUpdateObjectNode;
    RootFolder: IMetabaseUpdateFolderNode;
Begin
    Mb := MetabaseClass.Active;
    Upd := Mb.CreateUpdate;
    Obj := Mb.ItemById(
"REPORT").Bind;
    RootFolder := Upd.RootFolder;
    Nd := RootFolder.Add(MetabaseUpdateNodeType.Object) 
As IMetabaseUpdateObjectNode;
    Nd.Object := Obj;
    
If Mb.IsScreenshotSupported Then
        Nd.IncludeScreenshot := 
True;
    
End If;
    Upd.SaveToFileNF(
"C:\Update.pefx");
End Sub UserProc;

After executing the example a new update is created, which will include the regular report. If displaying objects as icons without taking into account access permissions is enabled in the repository, the regular report preview image is also included in the update.

See also:

IMetabaseUpdateObjectNode