# DocumentPermissions.AllowPrinting Property

> Gets or sets a value specifying whether the document can be printed. The default setting of this property is true.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > DocumentPermissions.AllowPrinting Property
- **517 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/allowprinting-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/allowprinting-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/allowprinting-property/llms-full.txt

---

### Description

Gets or sets a value specifying whether the document can be printed. The default setting of this property is true.

### Syntax

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

```vbnet
Public Property AllowPrinting As Boolean
```

### Examples

The following example configures document permissions for the current document by using `DocumentPermissions.AllowPrinting`.

```csharp
DocumentPermissions documentPermissions = textControl.DocumentPermissions;

documentPermissions.AllowPrinting = true;
if (documentPermissions.AllowPrinting)
{
    Console.WriteLine("Document Permissions: Allow Printing is enabled.");
}

documentPermissions.ReadOnly = true;
documentPermissions.AllowPrinting = true;
```

```vbnet
Dim documentPermissions As DocumentPermissions = textControl.DocumentPermissions

documentPermissions.AllowPrinting = True
If documentPermissions.AllowPrinting Then
    Console.WriteLine("Document Permissions: Allow Printing is enabled.")
End If

documentPermissions.ReadOnly = True
documentPermissions.AllowPrinting = True
```

---

## Nearby

- **Previous:** [DocumentPermissions.AllowFormattingStyles Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/allowformattingstyles-property/llms-full.txt)
- **Next:** [DocumentPermissions.ReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/readonly-property/llms-full.txt)
