# Using Accounting Double Underlining in MailMerge Templates

> Double underlining in accounting is used to indicate a grand total. This article explains how to setup a template with accounting double underlining in tables.

- **Author:** Bjoern Meyer
- **Published:** 2023-03-02
- **Modified:** 2026-07-17
- **Description:** Double underlining in accounting is used to indicate a grand total. This article explains how to setup a template with accounting double underlining in tables.
- **3 min read** (401 words)
- **Tags:**
  - ASP.NET
  - Windows Forms
  - Tables
  - Accounting
- **Web URL:** https://www.textcontrol.com/blog/2023/03/02/use-accounting-double-underlining-in-mailmerge-templates/
- **LLMs URL:** https://www.textcontrol.com/blog/2023/03/02/use-accounting-double-underlining-in-mailmerge-templates/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2023/03/02/use-accounting-double-underlining-in-mailmerge-templates/llms-full.txt

---

Double underlining in accounting is used to indicate a grand total. Typically, double underlining appears in the figure at the bottom of a table column in an invoice or a financial statement and indicates the end of a specific accounting procedure.

### Grand Total

For example, an invoice showing sold line items would use the double underlining under the grand total for all line items including taxes:

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice1.webp "Invoice template")

Single underlining in accounting is generally utilized to indicate a subtotal. In the invoice example, the single underlining would be applied to the subtotal before taxes.

In newer invoices, typically other formatting options such as bolding or frames are used to indicate the grand total. But the traditional accounting double underlining is still often used in financial statements.

### Tab Stops and Font Underlining

To setup an invoice template in TX Text Control, a combination of table cell borders and font underlining can be used to realize the double underlining.

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice2.webp "Invoice template")

### Setup Formatting

In the above screenshot, you can see the template that uses a combination of tab stops and font underlining in the grand total table cell. In order to create such a formatting, set the input position inside the table cell and remove all existing tab positions. This can be done by clicking and holding the tab position in the horizontal ruler bar to drag it of the ruler bar area:

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice3.webp "Invoice template")

Then choose *Doubled* from the *Underline* option in the *Font* ribbon group:

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice4.webp "Invoice template")

Select a right aligned tab from the ruler bar and insert this tab position at the cell location:

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice5.webp "Invoice template")

As the last step, insert a tab position into the cell by pressing CTRL+TAB and insert text or a merge field after it:

![Invoice template](https://s1-www.textcontrol.com/assets/dist/blog/2023/03/02/a/assets/invoice6.webp "Invoice template")

As a result, the complete table cell will be formatted with double underlining to indicate the grand total at the end of the calculation.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Splitting Tables at Bookmark Positions and Cloning Table Headers](https://www.textcontrol.com/blog/2025/02/13/splitting-tables-at-bookmark-positions-and-cloning-table-headers/llms.txt)
- [Loading and Processing Excel XLSX Spreadsheet Tables into TX Text Control using .NET C#](https://www.textcontrol.com/blog/2024/10/16/loading-and-processing-excel-spreadsheet-tables-into-tx-text-control-using-net-csharp/llms.txt)
- [Text to Table and Table to Text in TX Text Control and C#](https://www.textcontrol.com/blog/2024/06/26/text-to-table-and-table-to-text-in-tx-text-control-and-csharp/llms.txt)
- [Inserting MergeBlocks with the DataSourceManager and Applying Table Styles in C#](https://www.textcontrol.com/blog/2024/04/09/inserting-mergeblocks-with-the-datasourcemanager-and-applying-table-styles-in-csharp/llms.txt)
- [Useful Tricks for Working with Tables](https://www.textcontrol.com/blog/2023/08/04/useful-tricks-for-working-with-tables/llms.txt)
- [Generating Hierarchical Tables from JSON Data in .NET C#](https://www.textcontrol.com/blog/2023/08/03/generating-hierarchical-tables-from-json-data-in-csharp/llms.txt)
- [Table Extension: Remove Empty Columns After Mail Merge](https://www.textcontrol.com/blog/2023/06/08/table-extension-remove-empty-columns-after-mail-merge/llms.txt)
- [Extension Method: Converting Tables to Tabs in C#](https://www.textcontrol.com/blog/2023/03/16/extension-method-converting-tables-to-tabs-in-csharp/llms.txt)
- [Formatting Numbers in Table Cells](https://www.textcontrol.com/blog/2022/06/21/formatting-numbers-in-table-cells/llms.txt)
- [Merging Merge Block Cells Vertically with Matching Content](https://www.textcontrol.com/blog/2021/10/20/vertically-merge-table-cells-of-merge-blocks-for-matching-content/llms.txt)
- [Auto-Sizing Tables Proportionally](https://www.textcontrol.com/blog/2021/08/05/auto-sizing-tables-proportionally/llms.txt)
- [Export Document Tables to CSV in .NET C#](https://www.textcontrol.com/blog/2026/06/19/export-document-tables-to-csv-in-dotnet-csharp/llms.txt)
- [TX Text Control 34.0 SP4 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/05/20/tx-text-control-34-0-sp4-is-now-available/llms.txt)
- [TXTextControl.Markdown.Core 34.1.0-beta: Work with Full Documents, Selection, and SubTextParts](https://www.textcontrol.com/blog/2026/04/14/txtextcontrol-markdown-core-34-1-0-beta-work-with-full-documents-selection-and-subtextparts/llms.txt)
- [TX Spell .NET 11.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/04/08/tx-spell-net-11-0-sp1-is-now-available/llms.txt)
- [TX Text Control 34.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/02/18/tx-text-control-34-0-sp2-is-now-available/llms.txt)
- [Convert CSV to PDF in .NET C#](https://www.textcontrol.com/blog/2026/01/19/convert-csv-to-pdf-in-dotnet-csharp/llms.txt)
- [TX Text Control 34.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/12/03/tx-text-control-34-0-sp1-is-now-available/llms.txt)
- [Introducing TX Text Control 34.0: Your Next Leap in Document Processing](https://www.textcontrol.com/blog/2025/11/10/introducing-tx-text-control-34-0-your-next-leap-in-document-processing/llms.txt)
- [Sneak Peek: TX Text Control 34.0 Coming November 2025](https://www.textcontrol.com/blog/2025/10/02/sneak-peek-tx-text-control-34-0-coming-november-2025/llms.txt)
- [TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/08/14/tx-text-control-33-0-sp3-is-now-available/llms.txt)
- [TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/06/18/tx-text-control-33-0-sp2-is-now-available/llms.txt)
- [Document Lifecycle Optimization: Leveraging TX Text Control's Internal Format](https://www.textcontrol.com/blog/2025/05/16/document-lifecycle-optimization-leveraging-tx-text-controls-internal-format/llms.txt)
- [Expert Implementation Services for Legacy System Modernization](https://www.textcontrol.com/blog/2025/05/07/expert-implementation-services-for-legacy-system-modernization/llms.txt)
- [Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5](https://www.textcontrol.com/blog/2025/05/07/service-pack-releases-whats-new-in-tx-text-control-33-0-sp1-and-32-0-sp5/llms.txt)
