private void ImportButton_Click(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = false; openFileDialog.Filter = "Excel Files(*.xlsx)|*.xlsx"; if (openFileDialog.ShowDialog() == true) { this.FileTextBox.Text = openFileDialog.File.Name; this.FileTextBox.IsReadOnly = true; FileStream myStream = openFileDialog.File.OpenRead(); } }
Code Project
ADO.NET
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)