forked from JanKallman/EPPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault.aspx
68 lines (65 loc) · 2.15 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EPPlusWebSample._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>EPPlus Websample</title>
<style type="text/css">
body
{
BACKGROUND-COLOR:#FFFFFF;
COLOR: #111111;
FONT-FAMILY: Arial;
font-size: large;
margin-top: 1px
}
table
{
FONT-FAMILY: Arial;
FONT-SIZE: medium
}
A:link {color:#003399;}
A:visited {color:#003399;}
A:hover{color:#CC6699}
</style>
</head>
<body>
<form id="form1" runat="server">
<h1>EPPlus Web samples</h1>
<h3>The web sample project shows a few different ways to send a workbook to the client. </h3>
<table>
<tr>
<td>
<asp:HyperLink ID="sample1" runat="server" NavigateUrl="~/GetSample.aspx?Sample=1">Sample 1</asp:HyperLink>
</td>
<td>
This sample demonstrates how to output a spreadsheet using the SaveAs(Reponse.OutputSteam) method.
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="sample2" runat="server" NavigateUrl="~/GetSample.aspx?Sample=2">Sample 2</asp:HyperLink>
</td>
<td>
This sample demonstrates how to output a spreadsheet using the Response.BinaryWrite(pck.GetAsByteArray()).
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="sample3" runat="server" NavigateUrl="~/GetSample.aspx?Sample=3">Sample 3</asp:HyperLink>
</td>
<td>
This sample demonstrates how to use a template stored in the Application cache.
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="sample4" runat="server" NavigateUrl="~/GetSample.aspx?Sample=4">Sample 4</asp:HyperLink>
</td>
<td>
This sample demonstrates how to use a macro-enabled spreadsheet.
</td>
</tr>
</table>
</form>
</body>
</html>