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

PrintToolBase.Print() Method

Prints the current document.

Namespace: DevExpress.XtraPrinting

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


public void Print()
Public Sub Print


This method immediately sends a report assigned to the PrintToolBase to the default 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.

To send a report to a specified printer, use the overloaded Print method with the printerName parameter.

See Also