Skip to main content

PivotGridControl.ExportToText(Stream, String, Encoding) Method

Exports the Pivot Grid Control’s data to a text document with the specified separator string, text encoding settings and sends it to the specified stream.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.1.dll

NuGet Package: DevExpress.Win.PivotGrid


public void ExportToText(
    Stream stream,
    string separator,
    Encoding encoding


Name Type Description
stream Stream

A Stream object to which the created document is exported.

separator String

A String which contains the symbols that will be used to separate the text elements of the document in the created text file. The default value is “\t”.

encoding Encoding

A Encoding descendant that specifies the encoding of the created text document.


The Pivot Grid Control’s data can only be exported if the XtraPrinting Library is available. Use the PivotGridControl.IsPrintingAvailable property to check whether the grid’s data can be exported.

See Also