Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

create and store excel file in server.

$
0
0

Hi sifus,

Good day.

i use the following code to create the excel file. But instead of the excel file to be downloaded once created, I want it to be stored in my hosting server. How should i modify the code?

Response.ContentType = "application/x-msexcel"
Response.AddHeader("Content-Disposition", "attachment; filename=ExcelFile.xls")
Response.ContentEncoding = Encoding.UTF8
Dim tw = New StringWriter()
Dim hw = New HtmlTextWriter(tw)
ltl_saving.RenderControl(hw)
Response.Write(tw.ToString())

Response.End()

thanks in advance


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>