Back to Devexpress

LinkBase.PrintDirect(String) Method

wpf-devexpress-dot-xpf-dot-printing-dot-linkbase-dot-printdirect-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

LinkBase.PrintDirect(String) Method

Prints the current document to the specified printer.

Namespace : DevExpress.Xpf.Printing

Assembly : DevExpress.Xpf.Printing.v25.2.dll

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public void PrintDirect(
    string printerName
)
vb
Public Sub PrintDirect(
    printerName As String
)

Parameters

NameTypeDescription
printerNameString

A String that specifies the target printer name.

|

Remarks

Use the PrintDirect method without parameters to immediately send the document to the default printer, and the PrintDirect method with the printerName parameter to send the document to a specific printer.

You can use the LinkBase.Print method to print the document using custom printing settings specified in the Print dialog.

See Also

LinkBase Class

LinkBase Members

DevExpress.Xpf.Printing Namespace