IT Community - Software Programming, Web Development and Technical Support

How to Display ms office files in asp.net?

This is a discussion on How to Display ms office files in asp.net? within the ASP and ASP.NET Programming forums, part of the Web Development category; How to Display ms office files in asp.net?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-21-2007, 12:29 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question How to Display ms office files in asp.net?

How to Display ms office files in asp.net?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-21-2007, 01:36 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: How to Display ms office files in asp.net?

Hi.. Here is the answer for your question

You can display office files by changing the content type of the response object when sending data back to the client. For example, the following will change the content type to Excel. A search on google will give you the necessary content types for other office file formats.
response.ContentType = "application/x-msexcel"
response.AddHeader "content-disposition", "inline; filename=Report.xls"
As for creating new office files, this is a lot trickier and it really depends on the types of office files that you want to create. While all office products have underlying Object models that allow you to programmatically create and manipulate office documents, they are not designed for working over the web and can seriously affect the performance of your web applications. You might want to look into Office Web Components but this will not really help you if you are thinking of creating Word or Powerpoint documents. There are however a lot of third party tools out there that will give you the ability to create and manipulate Office documents. One such provider that I have used extensively is aspose who offer a tool for all Office products and others too
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from ms office doc(word,excel,ppt,access)to pdf Hema VB.NET Programming 4 10-11-2008 11:31 AM
Microsoft Office Accounting 2008 senthilkannan Microsoft 0 11-15-2007 02:31 AM
Team Explorer install on system without MS office installed arjkhanna Server Management 2 10-22-2007 08:19 AM
Display html files in Flash oxygen Flash Actionscript Programming 1 07-19-2007 12:54 AM
Microsoft Office 2004 11.3.6 Addresses Security Issues senthilkannan Microsoft 0 07-16-2007 04:18 AM


All times are GMT -7. The time now is 08:48 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0