-
Notifications
You must be signed in to change notification settings - Fork 0
/
Report1.aspx
69 lines (58 loc) · 1.69 KB
/
Report1.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
69
<%@ Page Language="vb" Codebehind="Qbr.aspx.vb" Inherits="QBRProject.QBR"%>
<%@ import namespace = "System" %>
<%@ import namespace = "System.Data" %>
<%@ import namespace = "System.Data.OleDb " %>
<%@ import namespace = "System.Web.UI" %>
<%@ import namespace = "System.Web.UI.WebControls" %>
<%@ import namespace = "System.drawing" %>
<script runat="server">
'|------------------------------------------------------------------------------------------------------------------|
'| Main : Call on page load |
'|------------------------------------------------------------------------------------------------------------------|
sub Page_Load
Dim dbConn as OleDbConnection
EstablishConnection(dbConn)
dbConn.open
CreateReport(dbConn)
dbConn.close
end sub
</script>
<html>
<head>
<title>Report</title>
<link rel="stylesheet" type="text/css" href="Styles.css" />
</head>
<body>
<form runat="server">
<table width="500%">
<tr>
<td>
<asp:PlaceHolder id="ph1" runat="server" />
</td>
</tr>
<tr height="20px"><td></td></tr>
<tr>
<td>
<asp:dataGrid id="dgQbr" runat="server"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="3"
CellSpacing="0"
Font-Name="Verdana"
Font-Size="8pt"
HeaderStyle-BackColor="#99CCFF"
HeaderStyle-Font-Bold="True"
AutoGenerateColumns="False"
/>
<td>
</tr>
<tr height="50px" valign="bottom">
<td>
<asp:button class="button" onclick="ExportToExcel" text="Export to Excel" runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>