# LoadSaveSettingsBase.ReportingMergeBlockFormat Property

> Specifies how reporting merge blocks are handled when a document is saved. Reporting merge blocks can be saved in a document either through special document targets represented through DocumentTarget objects or through special subtextparts represented through SubTextPart objects. When a merge block is marked with document targets, the name of the starting marker begins with blockstart_ and the name of the ending marker begins with blockend_. When a merge block is marked through a subtextpart, its name begins with txmb_.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > LoadSaveSettingsBase.ReportingMergeBlockFormat Property
- **812 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/reportingmergeblockformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/reportingmergeblockformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/reportingmergeblockformat-property/llms-full.txt

---

### Description

Specifies how reporting merge blocks are handled when a document is saved. Reporting merge blocks can be saved in a document either through special document targets represented through [DocumentTarget](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/llms-full.txt) objects or through special subtextparts represented through [SubTextPart](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/subtextpart/llms-full.txt) objects. When a merge block is marked with document targets, the name of the starting marker begins with blockstart\_ and the name of the ending marker begins with blockend\_. When a merge block is marked through a subtextpart, its name begins with txmb\_.

### Syntax

```csharp
public ReportingMergeBlockFormat ReportingMergeBlockFormat { get; set; }
```

```vbnet
Public Property ReportingMergeBlockFormat As ReportingMergeBlockFormat
```

### Members

| Value | Description |
|---|---|
| Default | The document is saved as it is. Reporting merge blocks are not converted. |
| DocumentTargets | If the document contains reporting merge blocks marked with subtextparts, these subtextparts are converted to document targets. |
| SubTextParts | This member is not used, when a document is saved. |

### Examples

The following example preserves reporting merge blocks while loading or saving a template. The configured base settings are then used by the appropriate load or save operation.

```csharp
loadSaveSettingsBase.ReportingMergeBlockFormat = ReportingMergeBlockFormat.SubTextParts;
if (loadSaveSettingsBase is LoadSettings loadSettings)
{
    textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
}
else if (loadSaveSettingsBase is SaveSettings saveSettings)
{
    textControl.Save("configured-document.docx", StreamType.WordprocessingML, saveSettings);
}
```

```vbnet
loadSaveSettingsBase.ReportingMergeBlockFormat = ReportingMergeBlockFormat.SubTextParts
If TypeOf loadSaveSettingsBase Is LoadSettings Then
    textControl.Load("template.docx", StreamType.WordprocessingML, DirectCast(loadSaveSettingsBase, LoadSettings))
ElseIf TypeOf loadSaveSettingsBase Is SaveSettings Then
    textControl.Save("configured-document.docx", StreamType.WordprocessingML, DirectCast(loadSaveSettingsBase, SaveSettings))
End If
```

---

## Nearby

- **Previous:** [LoadSaveSettingsBase.MasterPassword Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/masterpassword-property/llms-full.txt)
- **Next:** [LoadSaveSettingsBase.UserPassword Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/userpassword-property/llms-full.txt)
