Back to Devexpress

RichEditDocumentServer.Print() Method

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

latest2.8 KB
Original Source

RichEditDocumentServer.Print() Method

Prints the document to the default printer with the default settings.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public void Print()
vb
Public Sub Print

Remarks

The Print method prints the document to the system default printer.

Use other Print method overloads to print the document with the specific settings (define the number of copies, enable double-sided printing, etc. )

The following code snippets (auto-collected from DevExpress Examples) contain references to the Print() method.

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-print-documents/CS/Program.cs#L37

csharp
}
    server.Print();
}

word-document-api-examples/CS/CodeExamples/BasicActions.cs#L94

csharp
// Print the document to the default printer with the default settings.
wordProcessor.Print();
#endregion #PrintDocument

word-document-api-print-documents/VB/Program.vb#L25

vb
Next
    server.Print()
End Using

word-document-api-examples/VB/CodeExamples/BasicActions.vb#L89

vb
' Print the document to the default printer with the default settings.
            wordProcessor.Print()
#End Region ' #PrintDocument

See Also

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace