IPrxSheet.Load

Syntax

Load;

Description

The Load method loads regular report sheet.

Comments

The method is used, if:

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier that contains two sheets. Delayed loading of sheets was previously set up for the report.

Add links to the Metabase and Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Sheet: IPrxSheet;
    Sheets: IPrxSheets;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    
// Get regular report
    Report := MB.ItemById(
"REPORT").Open(Null) As IPrxReport;   
    
// Get report sheets
    Sheets := Report.Sheets;
    
// Get the second report sheet
    Sheet := Sheets.Item(1);
    
// Load the second report sheet, if it is not loaded
        
If Not Sheet.IsLoaded Then
            Sheet.Load;
        
End If;
End Sub UserProc;

After executing the example the active and the second report sheets are loaded on report opening.

See . also:

IPrxSheet