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.

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:
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.
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:
Then choose Doubled from the Underline option in the Font ribbon group:
Select a right aligned tab from the ruler bar and insert this tab position at the cell location:
As the last step, insert a tab position into the cell by pressing CTRL+TAB and insert text or a merge field after it:
As a result, the complete table cell will be formatted with double underlining to indicate the grand total at the end of the calculation.
ASP.NET
Integrate document processing into your applications to create documents such as PDFs and MS Word documents, including client-side document editing, viewing, and electronic signatures.
- Angular
- Blazor
- React
- JavaScript
- ASP.NET MVC, ASP.NET Core, and WebForms
Related Posts
ASP.NETWindows FormsASP.NET Core
Splitting Tables at Bookmark Positions and Cloning Table Headers
This article shows how to split tables at bookmark positions and how to clone table headers in TX Text Control .NET for Windows Forms and TX Text Control .NET Server.
Loading and Processing Excel XLSX Spreadsheet Tables into TX Text Control…
TX Text Control provides a powerful API to load and process Excel spreadsheet tables in .NET applications. This article shows how to load an Excel file and process the tables using TX Text Control…
Text to Table and Table to Text in TX Text Control and C#
TX Text Control provides powerful table features and also full access to text formatting which can be used to create tables from text and vice versa. This article shows how to convert text to…
Inserting MergeBlocks with the DataSourceManager and Applying Table Styles in C#
This article shows how to insert MergeBlocks with the DataSourceManager and how to apply table styles to those tables. The article uses the DocumentServer class to insert MergeBlocks with the…
Useful Tricks for Working with Tables
When you are working with complex and long tables, it can be useful to know if a table is broken up across multiple pages. These code snippets will help you with various table related tasks.