<%@ 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打印数据库中的数据</title>
    <style type="text/css">
        .style1
        {
            font-family: 隶书;
            font-size: xx-large;
            color: #008080;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
            <table align ="center" style="width: 500px; height: 96px" >
                <tr>
                    <td align ="center" class="style1">
                        调用Word打印数据库中的数据<br />
                    </td>
                </tr>
                <tr>
                    <td align ="center">
                        <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" Height="171px" Width="484px">
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td align ="center">
                        <br />
                        <asp:Button ID="Button1" runat="server" Height="41px" Text="输出到Word" 
                            Width="110px" onclick="Button1_Click" />
                    </td>
                </tr>
            </table>
    
    </div>
    </form>
</body>
</html>
