Back to Devexpress

PivotGridXlsxExportOptions Class

wpf-devexpress-dot-xpf-dot-pivotgrid-f524f7cd.md

latest3.0 KB
Original Source

PivotGridXlsxExportOptions Class

Contains export options specific to XLS format.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public class PivotGridXlsxExportOptions :
    XlsxExportOptionsEx,
    IPivotGridExportOptions,
    IDataAwareExportOptions
vb
Public Class PivotGridXlsxExportOptions
    Inherits XlsxExportOptionsEx
    Implements IPivotGridExportOptions,
               IDataAwareExportOptions

Remarks

To apply export options, create the PivotGridXlsxExportOptions instance, specify the properties, and pass the PivotGridXlsxExportOptions object as a parameter to the PivotGridControl.ExportToXlsx method:

csharp
//...
void Button_Click(object sender, RoutedEventArgs e) {
    PivotGridXlsxExportOptions op = new PivotGridXlsxExportOptions();
    op.CustomizeCell += op_CustomizeCell;
    pivorGrid1.ExportToXlsx(filePath, op);
}
vb
'...
Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim op As New PivotGridXlsxExportOptions()
    AddHandler op.CustomizeCell, AddressOf op_CustomizeCell
    pivorGrid1.ExportToXlsx(filePath, op)
End Sub

You can use this object’s members to specify whether to include Pivot Grid field headers in the exported document:

Inheritance

Object ExportOptionsBase PageByPageExportOptionsBase XlExportOptionsBase XlsxExportOptions XlsxExportOptionsEx PivotGridXlsxExportOptions

See Also

PivotGridXlsxExportOptions Members

DevExpress.Xpf.PivotGrid Namespace