BulkSettings: IGxBulkSettings;
BulkSettings: Prognoz.Platform.Interop.Drawing.IGxBulkSettings;
The BulkSettings property returns parameters of operation batch execution.
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:
IEaxBulkSettings. Batch operations parameters for express reports.
IPrxBulkSelection. Batch operations parameters for regular reports.
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, -1, 0, "");
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.
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. The specified procedure is an entry point for the .NET assembly.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
GxPrintersCls: GxPrintersClassClass = New GxPrintersClassClass();
DocPrint: IGxDocumentPrinter;
EaxRep: IEaxAnalyzer;
GxDoc: IGxDocument;
BulkSettings: IEaxBulkSettings;
SelSet: IDimSelectionSet;
Begin
MB := Params.Metabase;
//Printer for printing
DocPrint := GxPrintersCls.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, -1, 0, "", True);
End Sub;
After executing the example the express report is batch printed. Report versions are generated by all elements of the first fixed dimension.
See also: