Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
Is there a way to let the user choose the location to export a grid to excel?
posted

Hi People,

I'm using UltraGridExcelExporter to export a grid to excel. I give two arguments to it, the Grid and the location, Is there a way to let the user select the location to export the grid? I'm expecting something like the SaveFileDialog in Windows. Thanks in advance.

 

Regards,

Sandeep T C

Parents
  • 37774
    Verified Answer
    posted

    Sandeep,

    There is nothing built into the exporter to handle this, but there is the SaveFileDialog component that you can use to choose the file name:

    private void button1_Click(object sender, EventArgs e)
    {
        if (DialogResult.OK == this.saveFileDialog1.ShowDialog(this))
        {
            this.ultraGridExcelExporter1.Export(this.ultraGrid1, this.saveFileDialog1.FileName);
        }
    }

    -Matt

Reply Children
No Data