Back to Devexpress

XlsxExportOptionsEx.DocumentCulture Property

corelibraries-devexpress-dot-xtraprinting-dot-xlsxexportoptionsex-91f47389.md

latest1.7 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

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

Property Value

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

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

See Also

XlsxExportOptionsEx Class

XlsxExportOptionsEx Members

DevExpress.XtraPrinting Namespace