# MailMerge.UseTemplateFormat Property

> Specifies whether the template page size and margins should be used or not. The default value is false.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.0
- **Namespace:** `TXTextControl.DocumentServer`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer > MailMerge.UseTemplateFormat Property
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/usetemplateformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/usetemplateformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/usetemplateformat-property/llms-full.txt

---

### Description

Specifies whether the template page size and margins should be used or not. The default value is false.

### Syntax

```csharp
public bool UseTemplateFormat { get; set; }
```

```vbnet
Public Property UseTemplateFormat As Boolean
```

### Examples

The following example uses `MailMerge.UseTemplateFormat` to configure use template format as part of the mail merge workflow. The configured value is checked before the workflow continues.

```csharp
mailMerge.UseTemplateFormat = true;
if (mailMerge.UseTemplateFormat)
{
    Console.WriteLine("Mail Merge: Use Template Format is enabled.");
}
```

```vbnet
mailMerge.UseTemplateFormat = True
If mailMerge.UseTemplateFormat Then
    Console.WriteLine("Mail Merge: Use Template Format is enabled.")
End If
```

---

## Nearby

- **Previous:** [MailMerge.TextComponent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/textcomponent-property/llms-full.txt)
- **Next:** [MergeCanceledException Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mergecanceledexception/llms-full.txt)
