​
​
​

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

Syntax

​public bool AllowPrinting { get; set; }
​Public Property AllowPrinting() As Boolean

Examples

The following example shows the DocumentPermissions class. Here, the AllowPrinting property is set to false so that the document can't be printed.

​TXTextControl.DocumentPermissions document = new TXTextControl.DocumentPermissions();
  document.AllowPrinting = false;
​Dim document As TXTextControl.DocumentPermissions = New TXTextControl.DocumentPermissions()
  document.AllowPrinting = False
​