officefileapi-devexpress-dot-xtraspreadsheet-dot-workbooksaveoptions.md
Gets or sets the file name into which the document is saved or from which it is loaded.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
public string CurrentFileName { get; set; }
Public Property CurrentFileName As String
| Type | Description |
|---|---|
| String |
A String which represents the current file name (including the path and the file extension).
|
You can access this nested property as listed below:
| Object Type | Path to CurrentFileName |
|---|---|
| DocumentOptions |
.Save .CurrentFileName
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CurrentFileName property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
spreadsheet-document-api-external-workbook/CS/SpreadsheetApiExternalWorkbook/Program.cs#L15
Workbook externalWorkbook = new Workbook();
externalWorkbook.Options.Save.CurrentFileName = "ExternalDocument.xlsx";
// Check whether the external workbook is already referenced.
spreadsheet-document-api-external-workbook/VB/SpreadsheetApiExternalWorkbook/Program.vb#L12
Dim externalWorkbook As New Workbook()
externalWorkbook.Options.Save.CurrentFileName = "ExternalDocument.xlsx"
' Check whether the external workbook is already referenced.
See Also