saving an Excel Workbook on the client machine

Posted by Sateeshkumar.Singupuram under C# on 9/3/2013 | Points: 10 | Views : 2146 | Status : [Member] | Replies : 1
Hi,
i have to save my Workbook on the client machine using web application. here is my code as follows,

newBook.SaveAs(exportFilePath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
newBooks.Close();


exportFilePath = "fixed path" (i am giving fo timebeing) i need this line of code change to give an option to the user to select a path on the user's machine.


Thanks,
Sateesh

sateesh kumar singupuram


Responses

Posted by: Bandi on: 9/3/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer this link
http://stackoverflow.com/questions/7995024/saving-excel-in-clients-machine-using-interop
http://stackoverflow.com/questions/9369535/how-to-prompt-user-to-save-an-automated-excel-file
http://stackoverflow.com/questions/3366673/asp-prompt-save-file-dialog-from-streamwriter

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sateeshkumar.Singupuram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response