# Document Processing Examples

> Samples that process documents in code with TX Text Control .NET for WPF: spreadsheet formulas, XML files and ServerTextControl samples you can reuse.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Examples > Document Processing Examples
- **1020 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/document-processing/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/document-processing/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/document-processing/llms-full.txt

---

Code that loads, changes, analyzes or converts documents runs on the WPF [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) or on a [ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/llms-full.txt), which works without a user interface and is part of the WPF package as well. Only a few samples are WPF projects. Most document processing samples of Text Control are console applications written for TX Text Control .NET Server, and their `ServerTextControl` code carries over to a WPF application.

### WPF Samples

| Example | What it shows | Where |
|---|---|---|
| Spreadsheet formulas | Formulas compatible with Excel in the cells of a table, which recalculate when a value changes. Version 32.0, the .NET Framework 4.8 and .NET 6, C# and Visual Basic | [TXSamples\_WPF\_CSharp](https://github.com/TextControl/TXSamples_WPF_CSharp), folder *Howto\\Spreadsheet* |
| XML files | XML files loaded with a style sheet and a document type definition, including a file that isn't valid. Version 32.0, the .NET Framework 4.8 and .NET 6 | [TXSamples\_WPF\_CSharp](https://github.com/TextControl/TXSamples_WPF_CSharp), folder *Howto\\XMLBasics* |

The print preview sample, which renders the pages as images, is listed in [Document Editor Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/document-editor/#single-samples). The setup installs the samples of the official collection for the current version; [GitHub Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/github/#update-an-older-sample) describes how to update the copies on GitHub.

### ServerTextControl Samples

These projects, most of them console applications, were written for TX Text Control .NET Server 34.0 on .NET 8 or .NET 10. To reuse their code in a WPF project, reference `TXTextControl.TextControl.WPF.SDK` instead of their package:

| Example | What it shows | Where |
|---|---|---|
| Tracked changes | A report of all tracked changes of a DOCX document, then each change accepted or rejected, as described in [Inspect and Process Track Changes in DOCX Documents with TX Text Control with .NET C#](https://www.textcontrol.com/blog/2026/03/10/inspect-and-process-track-changes-in-docx-documents-with-tx-text-control-with-dotnet-csharp/) | [TXTextControl.TrackChanges.Core](https://github.com/TextControl/TXTextControl.TrackChanges.Core) |
| Tables to CSV | All tables of a document exported as CSV files, as described in [Export Document Tables to CSV in .NET C#](https://www.textcontrol.com/blog/2026/06/19/export-document-tables-to-csv-in-dotnet-csharp/) | [TXTextControl.TableToCSV](https://github.com/TextControl/TXTextControl.TableToCSV) |
| CSV to a table | CSV data turned into a table and saved as PDF, as described in [Convert CSV to PDF in .NET C#](https://www.textcontrol.com/blog/2026/01/19/convert-csv-to-pdf-in-dotnet-csharp/) | [TXTextControl.Core.CSVToTable](https://github.com/TextControl/TXTextControl.Core.CSVToTable) |
| Reporting Services reports | RDL reports converted into DOCX documents and templates, as described in [Convert SSRS RDL Reports to DOCX and TX Text Control Templates in .NET C#](https://www.textcontrol.com/blog/2026/06/22/convert-ssrs-rdl-reports-to-docx-and-tx-text-control-templates-in-dotnet-csharp/) | [TXTextControl.Rdl2Tx](https://github.com/TextControl/TXTextControl.Rdl2Tx) |
| Template dependencies | Fonts, images, merge fields, merge blocks and form fields of templates checked before deployment, as described in [Check TX Text Control Template Dependencies Before Deployment](https://www.textcontrol.com/blog/2026/07/28/check-tx-text-control-template-dependencies-before-deployment/) | [TXTextControl.Check.Dependencies](https://github.com/TextControl/TXTextControl.Check.Dependencies) |
| Styles from regular expressions | Inline styles applied by rules with regular expressions, read from JSON, as described in [RegEx Based Inline Styling in TX Text Control Using JSON Rules](https://www.textcontrol.com/blog/2026/01/20/regex-based-inline-styling-in-tx-text-control-using-json-rules/) | [TXTextControl.Core.RegExToStyle](https://github.com/TextControl/TXTextControl.Core.RegExToStyle) |
| Personal data | A document scanned for personal and health data with rules and regular expressions, as described in [A Rule-Based PHI and PII Risk Scanner for Documents Using C# .NET](https://www.textcontrol.com/blog/2026/02/03/a-rule-based-phi-and-pii-risk-scanner-for-documents-using-csharp-dotnet/) | [TXTextControl.Core.PHIScanner](https://github.com/TextControl/TXTextControl.Core.PHIScanner) |

### Next Steps

- [Document Processing](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/llms-full.txt): create, load, change and save documents in code.
- [Mail Merge Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mail-merge/llms-full.txt): documents created from templates and data.
- [GitHub Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/github/llms-full.txt): run a sample and update it to the current version.

---

## Nearby

- **Previous:** [MVVM Integration Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mvvm/llms-full.txt)
- **Next:** [Mail Merge Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/examples/mail-merge/llms-full.txt)
