IMetabaseObjectDescriptor.LoadChildScreenshots

Syntax

LoadChildScreenshots(Type: ScreenshotType);

Parameters

Type. Image type were cashing is executed.

Description

The LoadChildScreenshots method caches images used on preview for all children objects.

Comments

On executing the method the images used on previewing will be placed to cash for all preview supporting children objects. Preview is presenting repository objects as extra large icons. Preview as an image of the first page is available for reports created by means of the following tools: DashboardsAnalytical Queries (OLAP)Reports and Time Series Analysis.

The method is relevant for use if the IMetabase.IsScreenshotSupported property returns True.

Examples

Executing the example requires that the repository contains a folder with the REPORTS_FOLDER identifier. The folder stores various reports.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    If MB.IsScreenshotSupported Then
        MDesc := MB.ItemById("REPORTS_FOLDER");
        MDesc.LoadChildScreenshots(ScreenshotType.Default_);
    End If;
End Sub UserProc;

Executing the example, if the possibility to display object as icons without taking into account access permissions is enabled in the repository, then thumbnails of all objects from the specified folder will be saved to local cache on the current computer.

See also:

IMetabaseObjectDescriptor