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

XtraReport.PrinterName Property

Specifies the name of the printer to use for printing the report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public string PrinterName { get; set; }
Public Property PrinterName As String

Property Value

Type Default Description


A String value, specifying the name of the printer to use.


Use the PrinterName property to specify the printer you want to use for printing the report. The specified printer should be installed on the machine.

The PrinterName property should be specified before creating a document (which is performed using the XtraReport.CreateDocument method) as shown in the following code sample.

private string printerName = "<my printer name>";
private void PrintReport() {
    XtraReport report = new XtraReport1();

    //Specify the printer name.
    report.PrinterName = printerName;

    //Create the document.

    ReportPrintTool pt = new ReportPrintTool(report);
See Also