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
IPrxReport 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.

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.

See also:

IUiCommandTarget.Execute