Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / January 2007

Tip: Looking for answers? Try searching our database.

Creating an Excel document on a web server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chad - 23 Oct 2006 19:20 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.