# Mail Merge and Reporting

> Create documents from templates and data with MailMerge: data sources, merge fields and blocks, conditional content, images, barcodes and template design.

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

---

## On This Page

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

---

## In This Section

- [Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/barcodes/llms.txt): Merge data into barcodes: named barcode placeholders, QR codes and 1D and 2D types, TXBarcodeCore, UpperTextLength, BarcodeMerged and value validation.
- [Merge Blocks](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/blocks/llms.txt): Merge blocks in depth: content, DOCX storage, paragraph and table row blocks with InsertMergeBlock, single objects, GetBlockNames, block events and DataSets.
- [Conditional Content](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/conditional-content/llms.txt): Include or leave out content depending on the data: IF and NEXTIF fields, optional sections as merge blocks, block conditions, sub-templates and FieldMerged.
- [Data Sources](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/data-sources/llms.txt): Merge JSON, business objects, DataSets and XML with MailMerge: ParserException, parsing cultures, IDataRowAdapter records in events and where .rdsc files apply.
- [Merge Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/fields/llms.txt): Format merge fields with the MergeField class: number and date formats in all text parts, DATE fields, FieldMerged, HTML values, kept fields and form fields.
- [Images](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/images/llms.txt): Merge images into templates: named image placeholders, Base64 data, files and SVG, RemoveEmptyImages, the ImageMerged event and image merge fields.
- [Nested Blocks](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/nested-blocks/llms.txt): Build master-detail reports with nested merge blocks: nested JSON and objects, DataSets with relations, templates created with ChildBlocks and empty levels.
- [Overview](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/overview/llms.txt): Reporting model of MailMerge: flow layout templates, pre-shaped data, merged elements, one document per record with DataRowMerged, skipped records and events.
- [Sorting and Filtering](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/llms.txt): Sort and filter merge block rows: the Filter and Sort dialog of the Document Editor, FilterInstruction, SortingInstruction, BlockMergingCondition and Apply.
- [Styling](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/styling/llms.txt): Style merged documents: formatting kept from templates, alternating row colors, cells and text formatted by value, number formats, formulas and page format.
- [Template Assistant](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/template-assistant/llms.txt): Try the Mail Merge Template Assistant online demo: steps from JSON data to outline, how browser and server share the work, and the APIs it is built on.
- [Template Design](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/template-design/llms.txt): Design templates that merge well: MS Word or the Document Editor, sample data, TX or DOCX storage, layout rules, sub-templates and testing a template.

---

## Nearby

- **Previous:** [Server Visualization](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-processing/server-visualization/llms.txt)
- **Next:** [Overview](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/overview/llms.txt)
