I have searched S/O, but unable to find a solution that helps my problem. I am exporting data to an xls file from my asp.net application. I need to display the Open / Save As / Cancel dialog box when the user clicks “Export Data” button.
How do I accomplish that?
oSheet = Nothing
oRange = Nothing
oWB.SaveAs(sFileName.ToString())
oWB.Close()
oWB = Nothing
oXL.Quit()
Try this code block. You may have to fine tune it. The
Responseblock of the code has to do with the dialog box: