Opens a standard dialog box of batch export of a regular report.
Command parameters are passed in the Data property. Executing the command requires to specify the regular report described by the IPrxReport, interface, or an array of the Variant type, which elements contain the following values:
Value type | Description |
Element 1: IPrxReport | The regular report, for which batch export dialog box opens. |
Element 2: Boolean | The checkbox, which determines whether hidden sheets are exported. |
The command can be used only for regular reports. Batch export is executed after appropriate parameters are selected in the dialog box and the Finish button is pressed.
Executing the example requires a form with the Button1 button, the ReportBox component and the UiReport component named UiReport1, which is used as a data source for the ReportBox component. The UiReport1 component is connected to a regular report, for which batch export is available.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Data: Array;
Begin
Target := WinApplication.Instance.GetPluginTarget("Report");
Context := Target.CreateExecutionContext;
Data := New Variant[2];
Data[0] := UiReport1.Instance;
Data[1] := False;
Context.Data := Data;
Target.Execute("ShowBulkExportDialog", Context);
End Sub Button1OnClick;
Clicking the button opens a dialog box for batch export of report. Hidden sheets are not exported.
See also: