Skip to main content

PrintToolBase.Print() Method

Prints the current document on the default printer.

Namespace: DevExpress.XtraPrinting

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

NuGet Package: DevExpress.Printing.Core

Declaration

public void Print()

Remarks

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 different printer, use the overloaded Print(String) method with the printerName parameter.

To support server printing on Linux, install the libcups library. See Printing in Reporting Tools for Web for details.

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