?? reportview.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportView.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!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>無標(biāo)題頁</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LinkButton ID="LinkButton1" runat="server" BorderStyle="Outset"
PostBackUrl="~/subject.aspx" Style="font-size: large; left: 678px; color: #6699cc;
font-family: 華文琥珀; position: relative; top: -8px; background-color: #ffff66">返回主頁</asp:LinkButton>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;
height: 100%">
<tr>
<td align="center" style="width: 814px; height: 100px; text-align: center">
<asp:Label ID="Label1" runat="server" Height="31px" Style="font-size: xx-large; left: -5px;
font-family: 黑體; position: relative; top: -3px; background-color: #ccff66" Text="用餐結(jié)帳單"
Width="780px"></asp:Label></td>
</tr>
<tr>
<td align="center" style="width: 814px; height: 243px">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="417px" Width="790px" DocumentMapWidth="100%" SkinID="Red" ShowBackButton="True">
<LocalReport ReportPath="Report2.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="AccessDataSource4" Name="DataSet2_DataTable1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:AccessDataSource ID="AccessDataSource4" runat="server" DataFile="~/DB.mdb" SelectCommand="SELECT [NUMBER], [PAYMODE], [PRICE], [MENUNAME], [TABLEID] FROM [SALEDETAIL]">
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td align="center" style="width: 814px; height: 4px;">
</td>
</tr>
</table>
<br />
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/DB.mdb" OnSelecting="AccessDataSource1_Selecting"
SelectCommand="SELECT * FROM [SALEREPORT]"></asp:AccessDataSource>
<asp:Label ID="Label2" runat="server" Style="left: 488px; position: relative; top: -132px"
Text="客戶簽字:"></asp:Label>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
TypeName="DataSet2TableAdapters.DataTable1TableAdapter" OnSelecting="ObjectDataSource1_Selecting"></asp:ObjectDataSource>
<asp:Button ID="Button1" runat="server" Style="font-size: large; left: 486px; position: relative;
top: -80px" Text="打印" Width="56px" />
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -