Back to Devexpress

WorkbookSaveOptions.CurrentFileName Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-workbooksaveoptions.md

latest3.1 KB
Original Source

WorkbookSaveOptions.CurrentFileName Property

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

Declaration

csharp
public string CurrentFileName { get; set; }
vb
Public Property CurrentFileName As String

Property Value

TypeDescription
String

A String which represents the current file name (including the path and the file extension).

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

csharp
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

vb
Dim externalWorkbook As New Workbook()
externalWorkbook.Options.Save.CurrentFileName = "ExternalDocument.xlsx"
' Check whether the external workbook is already referenced.

See Also

DefaultFileName

WorkbookSaveOptions Class

WorkbookSaveOptions Members

DevExpress.XtraSpreadsheet Namespace