PivotGridControl.ExportToXls(String) 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 the specified file as XLS.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package: DevExpress.Win.PivotGrid
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| filePath | String | A String which specifies the full path (including the file name and extension) to where the XLS file will be created. |
Remarks
Numeric values of data fields will be exported as numbers, not as text. To export data field values as text, use another ExportToXls method overload with the useNativeFormat parameter and set this parameter to false.
The ExportToXls method indirectly calls the PrintingSystemBase.ExportToXls method of the XtraPrinting Library. If this library is not available, the method does nothing. For details on the ExportToXls method, see the PrintingSystemBase.ExportToXls topic.
For general information on exporting data, see Exporting.