Show contents 

Ui > Ui Assembly Interfaces > IUiCommandTarget > IUiCommandTarget.Execute > Report Plugin > ShowBulkPrintDialog

ShowBulkPrintDialog Command

Purpose

Opens a standard dialog box that is used to set up batch export of a regular report.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
The regular report, for which batch printing dialog box opens.

Application Features

The command is used only for regular reports. Batch print is executed after appropriate parameters are selected in the dialog box and the Print button is clicked.

Fore Example

Executing the example requires a form, the Button1 button on the form, 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 print is available.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    Target := WinApplication.Instance.GetPluginTarget("Report");
    Context := Target.CreateExecutionContext;
    Context.Data := UiReport1.Instance;
    Target.Execute("ShowBulkPrintDialog", Context);
End Sub Button1OnClick;

Clicking the button opens a dialog box for batch print of report.

Fore.NET Example

Executing the example requires a form, the Button1 button, the ReportBoxNet component and the UiReportNet component named UiReportNet1, which is used as a data source for the ReportBoxNet component. The UiReport1 component is connected to a regular report, for which batch print is available.

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WinApp: WinApplication = New WinApplicationClass_2();
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    Target := WinApp.GetPluginTarget("Report");
    Context := Target.CreateExecutionContext();
    Context.Data := UiReportNet1.ReportUi.Report;
    Target.Execute("ShowBulkPrintDialog", Context, Null);
End Sub;

Clicking the button opens a dialog box for batch print of report.

See also:

IUiCommandTarget.Execute