windowsforms-17817-controls-and-libraries-spreadsheet-mail-merge-parameters-panel.md
The Parameters panel allows the user to fine-tune a mail-merge report by providing a required parameter. To create a panel, click the SpreadsheetControl’s smart tag and select Create Parameters Panel in the invoked SpreadsheetControl Tasks menu.
To create a parametrized query, you can use the built-in Query Builder dialog, as shown below.
In the External Data Sources group, select Manage Queries from the Manage Relations drop-down menu.
In the invoked Query Editor window, click the Run Query Builder… button.
Click OK to close the Filter Editor dialog, and then click OK to close the Query Builder window.
Click Next in the Query Editor dialog to navigate to the page that allows you to configure query parameters. This page is shown in the image below.
In the invoked Spreadsheet Parameter dialog, you can specify the required parameter settings (its name, type and initial value).
At runtime, the Parameters panel displays query parameters and allows end-user’s to modify them. The following picture illustrates how to specify the order ID using the Parameters panel.
The resulting report displayed for the order ID equal to 10300 is shown below.