I want to create an Excel document on a web server that may be downloaded by
the end user.
I've read that its not recommended that Excel components be used on a server
and there are licensing considerations.
Aren't there new .NET Office components? If it wasn't wasn't recommended to
place these compnents on a web server, has this changed for the .NET
components?
Thanks
Cindy M. - 02 Nov 2006 12:37 GMT
Hi Chad,
> I want to create an Excel document on a web server that may be downloaded by
> the end user.
>
> I've read that its not recommended that Excel components be used on a server
> and there are licensing considerations.
You can generate the file as (Office 2007) XML. When Office 2007 is released to
market there will be file converters available that will allow all versions of
Office back to 2000 to open this file format.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Nitin - 13 Jan 2007 08:28 GMT
Hi chad
I use this code to export a Asp.net datagrid data to excel if that
is what you want.
Protected Sub ExportExl_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
' Get the DataGrid HTML from the control,
' then write straight to the browser
Dim objSW As New System.IO.StringWriter()
Dim objHTW As New System.Web.UI.HtmlTextWriter(objSW)
ShowAll.RenderControl(objHTW)
Response.Write(objSW.ToString())
Response.End()
End Sub
I hope it helps
Nitin
>I want to create an Excel document on a web server that may be downloaded
>by the end user.
[quoted text clipped - 7 lines]
>
> Thanks