A newer version of this page is available. Switch to the current version.

PrintToolBase.Print(String) Method

Prints the current document on the specified printer.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.2.Core.dll


public void Print(
    string printerName
Public Sub Print(
    printerName As String


Name Type Description
printerName String

A String representing the name of the printer on which the current document should be printed.


This method sends a report assigned to the PrintToolBase to the specified printer.

The document to be printed is accessible via the PrintingSystemBase.Document property of the PrintToolBase.PrintingSystem. Note that you need to call the XtraReport.CreateDocument method to generate a document prior to calling the Print method.


If a printer with the specified name isn't found, this method throws an InvalidPrinterException.

See Also