Skip to main content

Create a Letter in the Visual Studio Report Designer

This tutorial describes the steps to create a mail merge report, in which data fields are embedded into a label’s text that is replaced with corresponding data values on preview or export.

Do the following to create a mail merge report:

  1. Start Microsoft Visual Studio and create a new application under any of the supported platforms, or open an existing one.
  2. Add a new blank report.
  3. Bind the report to the “SalesPerson” view of the sample Northwind database.
  4. Drop the XRRichText control from the DX.23.2: Report Controls Toolbox tab onto the Detail band.

    How to -  CreateStaticReport_0

  5. Add the required text to the control and embed data fields’ names into it, surrounded by [square brackets], as shown in the following image:

    HowTo - MailMergeReport_0

To apply a formatting to the embedded data fields, set the cursor to a field’s name inside the square brackets, and click the control’s smart tag. In the invoked actions list, define the required value for the Format String property.

HowTo - MailMergeReport_1

Create a Letter in the End-User Report Designer

Tutorials that explain how to create different reports in EUD Report Designers for WinForms and Web are included in the End-User Documentation online help section: