# Create a Document Programmatically

> Build a report in Windows Forms with ServerTextControl and Selection: fonts, a table with a repeating header row, a PNG logo and a page header, saved as DOCX.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for Windows Forms > Getting Started > Document Processing > Create a Document Programmatically
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/llms-full.txt

---

## On This Page

- [Prerequisites](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#prerequisites)
- [How Code Builds a Document](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#how-code-builds-a-document)
- [Build the Document](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#build-the-document)
- [What the Code Does](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#what-the-code-does)
- [Run the Application](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#run-the-application)
- [Build the Document in the Editor Instead](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#build-the-document-in-the-editor-instead)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/create/#next-steps)

---

## Nearby

- **Previous:** [Document Processing](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/llms.txt)
- **Next:** [Save as DOCX and PDF](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/getting-started/document-processing/save-docx-pdf/llms.txt)
