Back to Devexpress

PivotGridControl.PrintDirect(String) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-printdirect-x28-system-dot-string-x29.md

latest2.3 KB
Original Source

PivotGridControl.PrintDirect(String) Method

Prints the pivot grid to the specified printer.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void PrintDirect(
    string printerName
)
vb
Public Sub PrintDirect(
    printerName As String
)

Parameters

NameTypeDescription
printerNameString

The printer name.

|

Remarks

Use the PrintDirect method without parameters, to send the pivot grid to the default printer, and the PrintDirect method with the printerName parameter, to send the pivot grid to a specific printer. You can use the PivotGridControl.Print method to invoke the Print dialog.

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

Note

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

For more information, refer to the Printing and Exporting topic.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace