BulkSelectionSet: IDimSelectionSet;
The BulkSelectionSet property returns fixed dimensions selection, used for batch operations.
The BulkSelectionSet collection consist of all fixed dimensions, used for export or print. That all the fixed dimensions for express report, containing one sheet. That the general fixed dimensions for express report, containing a number of sheets. The default selection consist of all selected elements by dimensions.
The selection of the BulkSelectionSet property can be modified if required and transferred as value of the IEaxBulkSettings.SelectionSet property.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Report contains several sheets with at least one common fixed dimension of the sources.
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 with customizable batch printing
EaxRep := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
GxDoc := EaxRep.Sheets As IGxDocument;
//Batch print parameters
BulkSettings := GxDoc.BulkSettings As IEaxBulkSettings;
BulkSettings.Enabled := True;
SelSet := EaxRep.BulkSelectionSet;
SelSet.Item(0).SelectAll;
BulkSettings.SelectionSet := SelSet;
//Print
GxDoc.Print(DocPrint, -1, 0, "");
End Sub UserProc;
After executing the example the batch print of express report is performed. The report variants are formed by all elements of the first fixed dimension.
See also: