# TextControlSettings.FormattingPrinter Property

> Gets or sets the name of a printer the text dimensions and capabilities of which are used to format the document. If the document is printed with this printer the displayed and the printed document have the same dimensions. If the property is set to Standard, the system installed standard printer is used to format the document. If the property is set to Display, the font dimensions of the display device are used to format the document. If the specified printer is not installed, the standard printer is used.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.FormattingPrinter Property
- **515 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/formattingprinter-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/formattingprinter-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/formattingprinter-property/llms-full.txt

---

### Description

Gets or sets the name of a printer the text dimensions and capabilities of which are used to format the document. If the document is printed with this printer the displayed and the printed document have the same dimensions. If the property is set to `Standard`, the system installed standard printer is used to format the document. If the property is set to `Display`, the font dimensions of the display device are used to format the document. If the specified printer is not installed, the standard printer is used.

### Syntax

```csharp
public string FormattingPrinter { get; set; }
```

```vbnet
Public Property FormattingPrinter As String
```

### Examples

In the current ASP.NET Core integration, `FormattingPrinter` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.FormattingPrinter = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.FormattingPrinter))
{
    Console.WriteLine($"Formatting Printer: {textControlSettings.FormattingPrinter}");
}
```

```vbnet
textControlSettings.FormattingPrinter = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.FormattingPrinter) Then
    Console.WriteLine($"Formatting Printer: {textControlSettings.FormattingPrinter}")
End If
```

---

## Nearby

- **Previous:** [TextControlSettings.EditMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/editmode-property/llms-full.txt)
- **Next:** [TextControlSettings.Height Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/height-property/llms-full.txt)
