<%@ 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>调用Excel打印数据库中的数据</title>
    <style type="text/css">
        .style2
        {
            font-family: 华文新魏;
            font-size: xx-large;
            color: #008080;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    
        <div style="text-align: center">
            <table style="height: 157px; width: 555px" >
                <tr>
                    <td align= "center" class="style2">
                        调用Excel打印数据库中的数据</td>
                </tr>
                <tr>
                    <td align= "center">
                        <asp:GridView ID="GridView1" runat="server" BackColor="LightGoldenrodYellow" 
                            BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
                            GridLines="None" Height="163px" Width="531px">
                            <FooterStyle BackColor="Tan" />
                            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                                HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                            <HeaderStyle BackColor="Tan" Font-Bold="True" />
                            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td align= "center">
                        <asp:Button ID="Button1" runat="server" Height="38px" onclick="Button1_Click" 
                            Text="输出到Excel" Width="97px" />
                    </td>
                </tr>
            </table>
    
    </div>
    </form>
</body>
</html>
