Click here to Skip to main content
15,896,063 members
Articles / Web Development / IIS

Upload and convert PowerPoint, Excel, Visio, Word to HTML on ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.94/5 (13 votes)
28 Dec 2012CPOL5 min read 48.7K   3K   27  
Upload a Microsoft Office Power Point, Excel, Visio, or Word File to webserver, of which will be converted to HTML and hosted as a document link on the page in which it was uploaded.
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="OfficeToHTMLWeb._Default" %>
<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
        <strong><em>Trending Now</em></strong></p>
    <p>
        The list below reports the pages on this site (up to ten) that have been 
        accessed the most. Using your mouse, hover over each link for details access 
        information or click on the link to see what all of the buz is about.</p>
        <asp:Panel runat="server" id="TrendingNowPanel" Width="100%">
        </asp:Panel>
    </p>

</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions