IPrxReport.DelayedLoad

Syntax

DelayedLoad: Boolean;

Description

The DelayedLoad property determines whether delayed loading is available for regular report sheets.

Comments

Available values:

Example

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

Add links to the Metabase, 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").Edit As IPrxReport;
    
// Set delayed sheet loading
    Report.DelayedLoad := 
True;
    
// 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;
    
// Save report
    (Report 
As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, the delayed loading of sheets will be set for report, on opening th report, the active and the second report sheets will be loaded.

See also:

IPrxReport