GR M

GR M

  • NA
  • 5
  • 23k

Save file dialog box

Jan 4 2011 3:37 AM
I want  to save a excel file dynamically to a desired location using vb.net savedialog box control.
What I need, is to get the new created file path (i.e Same as  save  as dialog in windows) .
I'll Use the Open file()  elsewhere. When I Use the below code, it says no file present.
FYI..
SaveFileDialog_admin.Filter = "Excel|*.Xls"
        SaveFileDialog_admin.Title = "Save An Excel File"
        SaveFileDialog_admin.ShowDialog()
        Dim file_name = SaveFileDialog_admin.FileName
        Label1.Text = Convert.ToString(file_name)

I just want to know how can I get the Newly created File Path And the file name for later  use.
Any Suggestion or  answer is welcomed.
Thanks in advance.
ASAP

Answers (1)