XlsxExportOptionsEx.DocumentCulture Property

Gets or sets the export document’s culture which defines numeric and date-time data formatting settings. Only available in data-aware export mode.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v21.1.Core.dll


public CultureInfo DocumentCulture { get; set; }

Property Value

Type Description

The export document’s culture.


By default, the export engine uses the current culture to format numeric and date-time cell values. To use a specific culture, set the DocumentCulture property.

The following image shows how to specify the French culture for the export document.

string path = "grd-export.xlsx";
XlsxExportOptionsEx op = new XlsxExportOptionsEx() { DocumentCulture = new CultureInfo("fr-FR") };
gridControl1.ExportToXlsx(path, op);
See Also