DataViewBase.PrintDirect() Method

Uses the default printer to print the GridControl.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public void PrintDirect()
Public Sub PrintDirect

Remarks

Use the PrintDirect method without parameters to send the GridControl's data to a default printer. To send the GridControl'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 GridControl's data, only if the DXPrinting Library is available.

Refer to the Printing and Exporting section for more information on how to print and export the GridControl.

See Also