Back to Devexpress

PrintableComponentLink.Print(String) Method

windowsforms-devexpress-dot-xtraprinting-dot-printablecomponentlink-dot-print-x28-system-dot-string-x29.md

latest1.6 KB
Original Source

PrintableComponentLink.Print(String) Method

Prints the current document to the specified printer.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.XtraPrinting.v25.2.dll

NuGet Package : DevExpress.Win.Printing

Declaration

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

Parameters

NameTypeDescription
printerNameString

A String value, specifying the printer name.

|

Remarks

If there is no printer with the specified name available on a machine, this method throws an exception of the InvalidPrinterException type.

If an empty string is defined for the printerName parameter, the document is sent to the system’s default printer.

See Also

PrintableComponentLink Class

PrintableComponentLink Members

DevExpress.XtraPrinting Namespace