# Mail Merge and Reporting

> Mail merge in Windows Forms: design templates in the Reporting tab, merge data with MailMerge, and find the pages on fields, blocks, styling and events.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for Windows Forms > Mail Merge and Reporting
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/llms-full.txt

---

## On This Page

- [How Mail Merge Works](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/#how-mail-merge-works)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/#where-to-start)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/#pages-in-this-section)
- [Related Sections](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/#related-sections)

---

## In This Section

- [Merge Blocks](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/blocks/llms.txt): Merge blocks in Windows Forms: the Insert Merge Block dialog, InsertMergeBlock with paragraph blocks, GetBlockNames and the block at the input position.
- [Conditional Content](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/conditional-content/llms.txt): Make Windows Forms templates conditional: IF fields and IfField, optional sections as merge blocks, merging conditions, INCLUDETEXT events and FieldMerged.
- [Data Sources](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/data-sources/llms.txt): Choose a mail merge data source in Windows Forms: business objects, DataSets, JSON, XML or configuration files, merged with MailMerge and shown in the ribbon.
- [Merge Events](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/events/llms.txt): Handle MailMerge events in Windows Forms: FieldMerged, BlockMerging, BlockRowMerged and DataRowMerged, their order, designer handlers and Cancel.
- [Merge Fields](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/fields/llms.txt): Format merge fields in Windows Forms: the Merge Field Options dialog, MergeField number and date formats, DATE fields, FieldMerged, HTML and form fields.
- [Images and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/images-barcodes/llms.txt): Merge images, barcodes and charts in Windows Forms: named placeholders, Select Frame Data Column, TXBarcodeControl, Base64 and SVG data, chart data relations.
- [Nested Blocks and Master-Detail Reports](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/nested-blocks/llms.txt): Build master-detail reports in Windows Forms with nested merge blocks: the Field Navigation sidebar, ChildBlocks, nested JSON and objects, DataSet relations.
- [Overview](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/overview/llms.txt): How MailMerge works in Windows Forms: pre-shaped data, merging in the TextControl or a ServerTextControl, one PDF per record, LoadTemplate and Print.
- [Reporting Ribbon and Dialog Boxes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/ribbon-dialogs/llms.txt): The Windows Forms RibbonReportingTab: its groups, the Insert Merge Block and field options dialogs, their DocumentServer.Windows.Forms classes and FindItem.
- [Sorting and Filtering](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/sorting-filtering/llms.txt): Sort and filter merge block rows in Windows Forms: the Filter and Sort dialog, FilterInstruction, SortingInstruction, Apply and block merging conditions.
- [Formatting and Styling](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/styling/llms.txt): Format merged documents in Windows Forms: formatting kept from the template, NEXT fields and BlockRowMerged for row colors, FieldMerged cell rules.
- [Subtemplates](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/subtemplates/llms.txt): Reuse headers and terms as subtemplates in Windows Forms: INCLUDETEXT fields from the Reporting tab or IncludeText, SearchPath and the IncludeTextMerging event.
- [Template Design](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/template-design/llms.txt): Design mail merge templates in Windows Forms: the Reporting tab or TX Words, sample data in DataSourceManager, TX or DOCX storage, layout rules and tests.
- [Template Preview](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/template-preview/llms.txt): Preview a mail merge template in a Windows Forms editor: DataSourceManager.Merge with MergeSettings, paging through records and restoring the template.

---

## Nearby

- **Previous:** [Content Controls and Word Form Fields](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-processing/content-controls/llms.txt)
- **Next:** [Overview](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/mail-merge/overview/llms.txt)
