<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Word Reader .NET component - Read Word documents DOC DOCX RTF TXT in ASP.NET
        website online (DEMO)</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1>
            Word Reader .NET component</h1>
        <p>
            This example demonstrates the Word Reader .NET component. The demo reads the 
            Word document and shows it as an HTML page with styles and formatting.<br />
            <i>Note</i>: After reading, the document has many additional elements that do not appear in the HTML.
            A Developer can get the information about such document elements as<br />
            Header/Footer, Comments, Footnotes, advanced properties of Text, Table, Columns 
            and other properties. See more code samples on
            <a href="/WordReader/Samples/Default.aspx">C#, VB.NET word samples</a>. </p>
        <ol>
            <li>Choose the <i>Word File</i> to render it on the page.</li>
            <li>Press button <i>Read Word Document</i>.</li>
        </ol>
        <asp:Panel ID="Panel1" runat="server" Width="700" BorderStyle="Solid" BorderWidth="1px"
            BorderColor="LightGray" Style="padding: 10px 20px;">
            <table cellpadding="3">
                <tr>
                    <td align="right">
                        Choose the document:
                    </td>
                    <td width="20">
                    </td>
                    <td>
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="400" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Read the document:
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Font-Bold="True" OnClick="Button1_Click"
                            Text="Read Word Document" Width="168px" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <!------------------------ resulted document ----------------------->
        <h1>
            Document View</h1>
        After reading the document, it is converted into the HTML string.<br />
        Please look at your Word document as HTML but do not forget about the following restrictions:
        <ul>
            <li>Different symbols are intentionally placed in text at random locations</li>
            <li>The document Tree structure (DOM) provides full information about content and formatting.</li>
            <li>The Trial version adds the commercial information to the document.</li>
        </ul>
        <div id="DivContainer1" runat="server" style="width: 700px; border: solid 1px #DDDDDD;
            padding: 10px 20px;"><i>Here the document will be rendered</i>
        </div>
        <div style="font-size: 10px; color: Gray;">
            <br />
            <a href="http://www.devtriogroup.com" title="ASP.NET components">Devtrio Group</a> 
            © All rights reserved.</div>
        <br />
    </div>
    </form>
</body>
</html>
