Skip to main content
A newer version of this page is available. .

PrintableComponentLink.Print(String) Method

Prints the current document to the specified printer.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v18.2.dll

Declaration

public void Print(
    string printerName
)

Parameters

Name Type Description
printerName String

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Print(String) 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.

See Also