Back to Devexpress

RichEditDocumentServer.IsPrintingAvailable Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-d6e457fb.md

latest2.7 KB
Original Source

RichEditDocumentServer.IsPrintingAvailable Property

Maintained for compatibility with the code written for the RichEditControl.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public bool IsPrintingAvailable { get; }
vb
Public ReadOnly Property IsPrintingAvailable As Boolean

Property Value

TypeDescription
Boolean

Always true.

|

Remarks

To print the document contained in the RichEditDocumentServer , use the PrintableComponentLinkBase.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsPrintingAvailable property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-use-printablecomponentlink-to-print-document/CS/PrintingSystem/Form1.cs#L53

csharp
{
    if (!srv.IsPrintingAvailable) return;
    using (PrintingSystemBase ps = new PrintingSystemBase())

word-document-api-use-printablecomponentlink-to-print-document/VB/PrintingSystem/Form1.vb#L53

vb
Private Shared Sub PrintViaLink(ByVal srv As RichEditDocumentServer)
    If Not srv.IsPrintingAvailable Then Return
    Using ps As PrintingSystemBase = New PrintingSystemBase()

See Also

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace