Back to Devexpress

PivotGridControl.ExportToText(String, String, Encoding) Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-dot-exporttotext-x28-system-dot-string-system-dot-string-system-dot-text-dot-encoding-x29.md

latest2.6 KB
Original Source

PivotGridControl.ExportToText(String, String, Encoding) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

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

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public void ExportToText(
    string filePath,
    string separator,
    Encoding encoding
)
vb
Public Sub ExportToText(
    filePath As String,
    separator As String,
    encoding As Encoding
)

Parameters

NameTypeDescription
filePathString

A String which specifies the full path (including the file name and extension) where the text file will be created.

| | 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.

|

Remarks

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

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace