# Dynamic Template Generation

> Build a Visual Basic 6 mail merge layout editor: insert fields of any database into a template, create labels at run time and save the database name with Save.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > Mail Merge > Dynamic Template Generation
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/llms-full.txt

---

## On This Page

- [Select a Database](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/#select-a-database)
- [Insert Database Fields Into the Template](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/#insert-database-fields-into-the-template)
- [Create the Labels of the Browse Database Form](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/#create-the-labels-of-the-browse-database-form)
- [Save the Database Name With the Template](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/#save-the-database-name-with-the-template)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/dynamic-templates/#next-steps)

---

## Nearby

- **Previous:** [Printing More Than One Record](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/multiple-records/llms.txt)
- **Next:** [Connecting to Databases](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/databases/llms.txt)
