IGxDocument.BulkSettings

Syntax

BulkSettings: IGxBulkSettings;

Description

The BulkSettings property returns parameters of operation batch execution.

Comments

The property is relevant if an object cast to the IGxDocument interface supports execution of batch print or export. If an object does not support batch operations, the BulkSettings property returns Null. Depending on the object type, to which parameters are set up, the value of this property can be cast to the following types:

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. The report contains several sheets, which sources have at least one shared fixed dimension.

Sub UserProc;
Var
    MB: IMetabase;
    DocPrint: IGxDocumentPrinter;
    EaxRep: IEaxAnalyzer;
    GxDoc: IGxDocument;
    BulkSettings: IEaxBulkSettings;
    SelSet: IDimSelectionSet;
Begin
    MB := MetabaseClass.Active;
    //Printer for printing
    DocPrint := GxPrinters.DefaultPrinter As IGxDocumentPrinter;
    //Express report, for which batch print is set up
    EaxRep := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
    GxDoc := EaxRep.Sheets As IGxDocument;
    //Batch print options
    BulkSettings := GxDoc.BulkSettings As IEaxBulkSettings;
    BulkSettings.Enabled := True;
    SelSet := EaxRep.BulkSelectionSet;
    SelSet.Item(0).SelectAll;
    BulkSettings.SelectionSet := SelSet;
    //Print
    GxDoc.Print(DocPrint, -10"");
End Sub UserProc;

After executing the example the express report is batch printed. Report versions are generated by all elements of the first fixed dimension.

See also:

IGxDocument