📜  devexpress 电子表格文档源 wpf - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.184000             🧑  作者: Mango

代码示例1
public LoadFeatureSheetsViewModel()  
        {  
            Filter = "Excel Spreadsheets (.xlsx)|*.xlsx|All Files (*.*)|*.*";  
            FilterIndex = 1;  
            Sheet1Path = "C:PATH\\Fatigue Calculation Results.xlsx";  
            FileStream stream = new FileStream("C:PATH\\Fatigue Calculation Results.xlsx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);  
            Sheet1Source = new SpreadsheetDocumentSource(stream, DocumentFormat.OpenXml);  
            Title = "Select Feature Sheet";  
        }