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

DataViewBase.PrintDirect() Method

Uses the default printer to print the control.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public void PrintDirect()

Remarks

Use the PrintDirect method without parameters to send the control’s data to the default printer. To send the control’s data to a specific printer, use the PrintDirect method with the printerName parameter. To invoke the standard Print dialog, use the DataViewBase.Print method.

void Print_Data(object sender, RoutedEventArgs e) {
    view.PrintDirect();
}

Note

You can preview, print, and export the control’s data only if the DXPrinting Library is available.

Refer to the following topics for more information on how to print data:

See Also