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.v20.1.Core.dll

Declaration

public CultureInfo DocumentCulture { get; set; }
Public Property DocumentCulture As CultureInfo

Property Value

Type Description
CultureInfo

The export document's culture.

Remarks

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);

Implements

DevExpress.Export.IDataAwareExportOptions.DocumentCulture
See Also