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

DataViewBase.PrintDirect(PrintQueue) Method

Obsolete. Prints the grid using the printer specified by the print queue.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.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 PrintQueue object specifying the print queue.

Remarks

Use the PrintDirect method without parameters, to immediately send the grid to a default printer, and the PrintDirect method with the queue parameter, to send the grid to a specific printer. Also, you can use the DataViewBase.Print method to print the grid using custom printing settings, specified by an end-user via the Print dialog.

To display the Print Preview of the grid, use the DataViewBase.ShowPrintPreview and DataViewBase.ShowPrintPreviewDialog methods. To export the grid, use the appropriate ExportTo~ method (e.g. DataViewBase.ExportToHtml, DataViewBase.ExportToPdf, etc.)

NOTE

The grid can be previewed, printed and exported only if the DXPrinting Library is available.

See Also