Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
468 Points
71 Posts
Aug 17, 2007 12:12 AM|LINK
I got this working nicely in VB.NET with a few simple alterations:
Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment;filename=Sample2.xls") Response.Charset = "" EnableViewState = False
<!--Read in files and do replace here -->
Response.Write(rptxml) Response.End()
Also a good tool for converting C# to VB is Instant VB from http://www.tangiblesoftwaresolutions.com/
adman666
Member
468 Points
71 Posts
Re: Dynamically Generate An Excel spreadsheet in asp.net
Aug 17, 2007 12:12 AM|LINK
I got this working nicely in VB.NET with a few simple alterations:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment;filename=Sample2.xls")
Response.Charset = ""
EnableViewState = False
<!--Read in files and do replace here -->
Response.Write(rptxml)
Response.End()
Also a good tool for converting C# to VB is Instant VB from http://www.tangiblesoftwaresolutions.com/
Thanks.