GridControl.ExportToTextOld(String) Method
OBSOLETE
Use the ExportToText method instead
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 data displayed by the GridControl.DefaultView (the GridControl.MainView or the currently maximized detail View) to the specified file in TXT format.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraGrid.v25.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use the ExportToText method instead")]
public void ExportToTextOld(
string fileName
)
Parameters
| Name | Type | Description |
|---|---|---|
| fileName | String | A string that specifies the full path to the file to which the View’s data will be exported. |
Remarks
This method is obsolete. Although the ExportToTextOld method can still be used in your applications to export data, we recommend you use the GridControl.ExportToText method instead. Note that the GridControl.ExportToText requires the XtraPrinting Library to be available.
See Export Overview for general information on exporting data.