Back to Devexpress

DocumentFormat.OpenXml Field

officefileapi-devexpress-dot-spreadsheet-dot-documentformat-f8d33049.md

latest6.1 KB
Original Source

DocumentFormat.OpenXml Field

Microsoft Office Open XML format - the default file format starting with Microsoft Excel 2007. File extension - .xlsx.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[Browsable(false)]
public static readonly DocumentFormat OpenXml
vb
<Browsable(False)>
Public Shared ReadOnly OpenXml As DocumentFormat

Field Value

TypeDescription
DocumentFormat

A document format.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the OpenXml field.

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-apply-conditional-formatting-to-cell-range/CS/ConditionalFormatting_Example/Form1.cs#L72

csharp
// Load a workbook from a file.
workbook.LoadDocument("..\\..\\..\\Documents\\Document.xlsx", DocumentFormat.OpenXml);
#endregion #LoadDocumentFromFile

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/CS/SpreadsheetControl/Form1.cs#L76

csharp
// Load a workbook from a file.
workbook.LoadDocument("Documents\\Document.xlsx", DocumentFormat.OpenXml);
#endregion #LoadDocumentFromFile

winforms-spreadsheetcontrol-api-part1/CS/SpreadsheetControl/Form1.cs#L135

csharp
// Load a workbook from a file.
spreadsheetControl1.LoadDocument("Documents\\Document.xlsx", DocumentFormat.OpenXml);
#endregion #LoadDocumentFromFile

winforms-spreadsheetcontrol-api-part-2/CS/SpreadsheetControl_API_Part02/Form1.cs#L146

csharp
// Load a workbook from the file.
workbook.LoadDocument("Documents\\Document.xlsx", DocumentFormat.OpenXml);
#endregion #LoadDocumentFromFile

wpf-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/CS/ConditionalFormatting_WPF_Examples/MainWindow.xaml.cs#L57

csharp
// Load a workbook from a file.
workbook.LoadDocument("Documents\\Document.xlsx", DocumentFormat.OpenXml);
#endregion #LoadDocumentFromFile

spreadsheet-document-api-apply-conditional-formatting-to-cell-range/VB/ConditionalFormatting_Example/Form1.vb#L64

vb
' Load a workbook from a file.
            workbook.LoadDocument("..\..\..\Documents\Document.xlsx", DocumentFormat.OpenXml)
#End Region

winforms-spreadsheet-apply-conditional-formatting-to-a-range-of-cells/VB/SpreadsheetControl/Form1.vb#L72

vb
' Load a workbook from a file.
            workbook.LoadDocument("Documents\Document.xlsx", DocumentFormat.OpenXml)
' #End Region ' #LoadDocumentFromFile

winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/Form1.vb#L129

vb
' Load a workbook from a file.
            spreadsheetControl1.LoadDocument("Documents\Document.xlsx", DocumentFormat.OpenXml)
' #End Region ' #LoadDocumentFromFile

winforms-spreadsheetcontrol-api-part-2/VB/SpreadsheetControl_API_Part02/Form1.vb#L135

vb
' Load a workbook from the file.
workbook.LoadDocument("Documents\Document.xlsx", DocumentFormat.OpenXml)
' #End Region ' #LoadDocumentFromFile

wpf-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/VB/ConditionalFormatting_WPF_Examples/MainWindow.xaml.vb#L52

vb
' Load a workbook from a file.
            workbook.LoadDocument("Documents\Document.xlsx", DocumentFormat.OpenXml)
' #End Region ' #LoadDocumentFromFile

See Also

DocumentFormat Struct

DocumentFormat Members

DevExpress.Spreadsheet Namespace