However, there is no public access to the file path that is opened. A possible solution that I can suggest is to create your own logic for opening the file in order to have access to the file dialog and the selected file path accordingly. I have prepared a sample code snippet for your reference:
publicRadForm1()
{
InitializeComponent();
BackstageButtonItem myOpen = new BackstageButtonItem();
myOpen.Click += MyOpen_Click;
this.radSpreadsheetRibbonBar1.BackstageControl.Items.Insert(0, myOpen);
myOpen.Image = ((BackstageButtonItem)this.radSpreadsheetRibbonBar1.BackstageControl.Items["backstageButtonOpen"]).Image;
this.radSpreadsheetRibbonBar1.BackstageControl.Items["backstageButtonOpen"].Visibility = ElementVisibility.Collapsed;
}
privatevoidMyOpen_Click(object sender, EventArgs e)
{
RadOpenFileDialog openFileDialog = new RadOpenFileDialog();
DialogResult dr = openFileDialog.ShowDialog();
if (dr == System.Windows.Forms.DialogResult.OK)
{
string fileName = openFileDialog.FileName;
var formatProvider = new XlsxFormatProvider();
using (Stream input = new FileStream(fileName, FileMode.Open))
{
radSpreadsheet1.Workbook = formatProvider.Import(input);
}
}
}
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik