Back to Devexpress

DataViewBase.Print() Method

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-551d9c29.md

latest1.9 KB
Original Source

DataViewBase.Print() Method

Invokes the Print dialog and prints the control’s data.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void Print()
vb
Public Sub Print

Remarks

This method invokes the standard Print dialog that allows users to print the control’s data, select a printer, specify the number of pages and copies, and so on. To print the control’s data without a dialog, use the DataViewBase.PrintDirect method.

csharp
void Print_Data(object sender, RoutedEventArgs e) {
    view.Print();
}
vb
Private Sub Print_Data(ByVal sender As Object, ByVal e As RoutedEventArgs)
    view.Print()
End Sub

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

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace