LoadChildScreenshots(Type: ScreenshotType);
Type. Image type where cashing is executed.
The LoadChildScreenshots method caches images used on preview for all child objects.
On executing the method the images used on preview will be placed to cache for all child objects that support preview. Preview is presenting repository objects as extra large icons. Preview as an image of the first page is available for reports created by the following tools: Dashboards, Analytical Queries (OLAP), Reports and Time Series Analysis.
The method is relevant for use if the IMetabase.IsScreenshotSupported property returns True.
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 objects as icons without taking into account access permissions is enabled in the repository, thumbnails of all objects from the specified folder will be saved to local cache on the current computer.
See also: