DataViewBase.PrintDirect(PrintQueue) Method

Obsolete. Uses the specified printer to print the control's data.

Namespace: DevExpress.Xpf.Grid

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

Declaration

[Obsolete("This method is now obsolete. Use the DevExpress.Xpf.Grid.DataViewBase.PrintDirect(string printerName) method instead.")]
public void PrintDirect(
    PrintQueue queue
)
<Obsolete("This method is now obsolete. Use the DevExpress.Xpf.Grid.DataViewBase.PrintDirect(string printerName) method instead.")>
Public Sub PrintDirect(
    queue As PrintQueue
)

Parameters

Name Type Description
queue PrintQueue

A print queue.

Remarks

Use the PrintDirect method with the queue parameter to send the control's data to the specified printer. To invoke the standard Print dialog, use the DataViewBase.Print method.

void Print_Data(object sender, RoutedEventArgs e) {
    view.PrintDirect(PrintQueue);
}
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