Back to Devexpress

SpreadsheetExportOptions.CustomFunctionExportMode Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetexportoptions.md

latest2.9 KB
Original Source

SpreadsheetExportOptions.CustomFunctionExportMode Property

Specifies whether custom function definitions should be replaced with the corresponding calculated values when exporting a document. This is a dependency property.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public CustomFunctionExportMode CustomFunctionExportMode { get; set; }
vb
Public Property CustomFunctionExportMode As CustomFunctionExportMode

Property Value

TypeDescription
CustomFunctionExportMode

A CustomFunctionExportMode enumerator value.

|

Available values:

NameDescription
CalculatedValue

Export values calculated from custom functions.

| | Function |

Export custom function definitions.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CustomFunctionExportMode
SpreadsheetControlOptions

.Export .CustomFunctionExportMode

|

Remarks

Custom functions are not saved in a workbook. Therefore, if a worksheet that contains a custom function is loaded in a workbook that is not aware of the function (or in MS Excel), the “#NAME!” error is displayed after the cell containing the function has been re-evaluated. To avoid this situation, you can set the CustomFunctionExportMode option to CustomFunctionExportMode.CalculatedValue and custom functions will be converted to their calculated values when saving a document.

See Also

CustomFunctions

ICustomFunction

User-Defined Functions (UDF)

SpreadsheetExportOptions Class

SpreadsheetExportOptions Members

DevExpress.Xpf.Spreadsheet Namespace